fromNativeValue static method
Gets a possible ActionModeMenuItem instance from a native value.
Implementation
static ActionModeMenuItem? fromNativeValue(int? value) {
if (value != null) {
try {
return ActionModeMenuItem.values
.firstWhere((element) => element.toNativeValue() == value);
} catch (e) {
return ActionModeMenuItem._internal(value, value);
}
}
return null;
}