Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:example/models/location.dart';
- import 'package:example/api/locations.dart';
- class LocationsRepository{
- //setup the locations provider object
- LocationsApiProvider _apiProvider = LocationsApiProvider();
- //call the data for getting locations
- Future<LocationsResponse> getlocations(){
- return _apiProvider.getlocations();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement