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