stop method
Implementation
Future<void> stop() async {
await _nativeSetup.future;
if (state == FState.end ||
state == FState.idle ||
state == FState.initialized) {
FLog.e("$this invoke stop invalid state:$state");
return Future.error(StateError("call stop on invalid state $state"));
} else {
FLog.i("$this invoke stop");
await _channel.invokeMethod("stop");
}
}