reset method
Implementation
Future<void> reset() async {
await _nativeSetup.future;
if (state == FState.end) {
FLog.e("$this invoke reset invalid state:$state");
return Future.error(StateError("call reset on invalid state $state"));
} else {
_callId += 1;
int cid = _callId;
FLog.i("$this invoke reset #$cid");
await _channel.invokeMethod("reset").then((_) {
FLog.i("$this invoke reset #$cid -> done");
});
_setValue(FValue.uninitialized().copyWith(fullScreen: value.fullScreen));
}
}