startLiveLocation method

  1. @override
Future<void> startLiveLocation({
  1. String provider = 'best',
  2. int intervalMs = 2000,
  3. double distanceMeters = 0,
})
override

Starts continuous location updates on the native side. Emits results via the liveLocation method channel callback.

Implementation

@override
Future<void> startLiveLocation({
  String provider = 'best',
  int intervalMs = 2000,
  double distanceMeters = 0,
}) async =>
    // Pass all parameters as a map; native side reads them with call.argument()
    methodChannel.invokeMethod('startLiveLocation', {
      'provider': provider,
      'intervalMs': intervalMs,
      'distanceMeters': distanceMeters,
    });