Advertisement
Buttermancer

location_repository

Mar 11th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.36 KB | None | 0 0
  1. import 'package:example/models/location.dart';
  2. import 'package:example/api/locations.dart';
  3.  
  4. class LocationsRepository{
  5.  
  6.   //setup the locations provider object
  7.   LocationsApiProvider _apiProvider = LocationsApiProvider();
  8.  
  9.   //call the data for getting locations
  10.   Future<LocationsResponse> getlocations(){
  11.     return _apiProvider.getlocations();
  12.   }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement