requestLocationUpdates method

Future<void> requestLocationUpdates(
  1. LocationRequest locationRequest
)

Starts positioning. Use onLocationUpdate, onLocationStatus and onLocationError callbacks to receive location updates, status changes and positioning errors.

Implementation

Future<void> requestLocationUpdates(LocationRequest locationRequest) async {
  await methodChannel.invokeMethod(
      'requestLocationUpdates', locationRequest.toMap());
}