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