Skip to content

Instantly share code, notes, and snippets.

@AseemWangoo
Created September 6, 2022 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AseemWangoo/05a9bc3aa2595e7863fbb8c04375aee6 to your computer and use it in GitHub Desktop.
Save AseemWangoo/05a9bc3aa2595e7863fbb8c04375aee6 to your computer and use it in GitHub Desktop.
home_repository
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