Skip to content

Instantly share code, notes, and snippets.

@aniekan12
Created November 9, 2022 16:52
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 aniekan12/c8024d97cfbd2590f5f755f5342454c9 to your computer and use it in GitHub Desktop.
Save aniekan12/c8024d97cfbd2590f5f755f5342454c9 to your computer and use it in GitHub Desktop.
import 'package:shopping_cart_with_bloc/core/api_provider/api_provider.dart';
import 'package:shopping_cart_with_bloc/core/models/shopping_home.dart';
class ShoppingHomeRepository {
final _apiProvider = ApiProvider();
Future<List<ShoppingHomeModel>> getShoppingItems() async {
return _apiProvider.getShoppingItems();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment