daily pastebin goal
9%
SHARE
TWEET

location_repository

Buttermancer Mar 11th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top