isMockEnabled method

  1. @override
Future<bool> isMockEnabled()
override

Checks if mock location is enabled on the device.

Returns true if mock location is enabled, otherwise false.

Implementation

@override
Future<bool> isMockEnabled() async {
  return methodChannel
      .invokeMethod("isMockEnabled")
      .then<bool>((value) => value);
}