fromString static method

RemoteCommand fromString(
  1. String? commandString
)

Implementation

static RemoteCommand fromString(String? commandString) {
  switch (commandString) {
    case 'nextTrack':
      return RemoteCommand.nextTrack;
    case 'previousTrack':
      return RemoteCommand.previousTrack;
    default:
      return RemoteCommand.unknown;
  }
}