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