fromValue static method

NativeScriptType fromValue(
  1. int? value
)

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}),
  );
}