getState method

  1. @override
Future<ImpulsePlayerState> getState(
  1. int id
)
override

Implementation

@override
Future<ImpulsePlayerState> getState(int id) async {
  var raw = await methodChannel.invokeMethod<String>(ImpulsePlayerPluginConstants.MethodGetState, {
    ImpulsePlayerPluginConstants.ParameterId: id,
  }) ?? "";
  return ImpulsePlayerState.fromValue(raw);
}