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