getTrackingState method

  1. @override
Future<TrackingState?> getTrackingState()
override

Implementation

@override
Future<TrackingState?> getTrackingState() async {
  int status =
      await methodChannel.invokeMethod<int>('getTrackingState') ?? -1;
  return TrackingState.getByValue(status);
}