byName static method
- String? name
Gets a possible AndroidMixedContentMode instance value with name name.
Goes through AndroidMixedContentMode.values looking for a value with
name name, as reported by AndroidMixedContentMode.name.
Returns the first value with the given name, otherwise null.
Implementation
static AndroidMixedContentMode? byName(String? name) {
if (name != null) {
try {
return AndroidMixedContentMode.values.firstWhere(
(element) => element.name() == name,
);
} catch (e) {
return null;
}
}
return null;
}