fromName static method
Returns the NativeScriptType corresponding to the provided value.
Implementation
static NativeScriptType fromName(String? name) {
return values.firstWhere(
(element) => element.name == name,
orElse: () => throw MessageException(
"No NativeScriptType found matching the specified name",
details: {"name": name}),
);
}