mirrored_repositories/covid-19-india-tracker
import 'package:geolocator/geolocator.dart';

class GeoLocatorService{
  final Geolocator geo=Geolocator();

  Stream<Position> getCurrentLocation(){
    var locationOptions=LocationOptions(accuracy: LocationAccuracy.high,distanceFilter: 6);
    return geo.getPositionStream(locationOptions);
  }

  Future<Position> getInitialLocation() async{
    return geo.getCurrentPosition(desiredAccuracy: LocationAccuracy.high);
  }
}