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