stop method
Stop this sensor NOTE: You need to set a method channel before using this method.
Implementation
Future<Null> stop() async {
if (_channel == null) {
print("Please set a method channel before use the start method.");
return null;
}
try {
await _channel?.invokeMethod('stop', null);
} on PlatformException catch (e) {
print(e.message);
}
}