getState method
Returns the current SDK state.
Implementation
@override
Future<MoveState> getState() async {
final sdkState = await methodChannel.invokeMethod<String>('getSdkState');
MoveState? result = MoveState.values.firstWhereOrNull(
(element) => element.name.toLowerCase() == sdkState?.toLowerCase());
return result ?? MoveState.unknown;
}