fromString static method
Implementation
static MethodChannels fromString(String value) {
return MethodChannels.values.firstWhere(
(e) => e.methodName == value,
orElse: () => throw ArgumentError('Invalid method channel: $value'),
);
}
static MethodChannels fromString(String value) {
return MethodChannels.values.firstWhere(
(e) => e.methodName == value,
orElse: () => throw ArgumentError('Invalid method channel: $value'),
);
}