requestLocationUpdates method

Future<void> requestLocationUpdates(
  1. LocationListener listener,
  2. Map<String, dynamic> locationRequest
)

Implementation

Future<void> requestLocationUpdates(
    LocationListener listener, Map<String, dynamic> locationRequest) async {
  if (!identical(locationListener, listener)) {
    locationListener = listener;
    await methodChannel.invokeMethod(
        'requestLocationUpdates', locationRequest);
  }
}