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