clearLocationWatch method

  1. @override
Future<String?> clearLocationWatch()
override

The function clears the location watch and returns a string value. @returns The method is returning a Future<String?>.

Implementation

@override
Future<String?> clearLocationWatch() async {
  final returnVal =
      await methodChannel.invokeMethod<String>('clearLocationWatch');
  _locationStream = null;
  return returnVal;
}