Created
September 6, 2022 14:13
-
-
Save AseemWangoo/05a9bc3aa2595e7863fbb8c04375aee6 to your computer and use it in GitHub Desktop.
home_repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HomeRepositoryImpl extends HomeRepository { | |
@override | |
Future<CarouselModel> fetchData() async { | |
await Future.delayed(const Duration(milliseconds: 1800)); | |
final resp = await rootBundle.loadString('assets/data/first_screen.json'); | |
return carouselModelFromJson(resp); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment