fromNativeValue static method

IOSNavigationResponseAction? fromNativeValue(
  1. int? value
)

Gets a possible IOSNavigationResponseAction instance from a native value.

Implementation

static IOSNavigationResponseAction? fromNativeValue(int? value) {
  if (value != null) {
    try {
      return IOSNavigationResponseAction.values
          .firstWhere((element) => element.toNativeValue() == value);
    } catch (e) {
      return null;
    }
  }
  return null;
}