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