startTracking method

Future<void> startTracking({
  1. bool stopFollowOnDrag = false,
  2. bool disableMarkerRotation = false,
  3. bool useDirectionMarker = false,
  4. Anchor anchor = Anchor.center,
})

Implementation

Future<void> startTracking({
  bool stopFollowOnDrag = false,
  bool disableMarkerRotation = false,
  bool useDirectionMarker = false,
  Anchor anchor = Anchor.center,
}) async {
  final transport = await _controller._locationTransport(
    'startLocationTracking',
    requestPermission: true,
  );
  await transport.startLocationTracking(
    stopFollowOnDrag: stopFollowOnDrag,
    disableMarkerRotation: disableMarkerRotation,
    useDirectionMarker: useDirectionMarker,
    anchor: anchor,
  );
}