stop method
Stops the service.
Kills stream, timer and method call handler
Implementation
void stop() {
_controller?.close();
_controller = null;
WidgetsBinding.instance.removeObserver(this);
if (Platform.isAndroid) _channel.setMethodCallHandler(null);
if (Platform.isIOS) {
_refreshTimer?.cancel();
_refreshTimer = null;
}
}