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