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