byKey static method

UfbtUpdateChannel byKey(
  1. String key
)

Implementation

static UfbtUpdateChannel byKey(String key) {
  return UfbtUpdateChannel.values.firstWhere(
    (channel) => channel.key == key.toLowerCase(),
    orElse: () => throw ArgumentError('Invalid channel: $key'),
  );
}