fromNativeValue static method

IOSWKNavigationType? fromNativeValue(
  1. int? value
)

Gets a possible IOSWKNavigationType instance from a native value.

Implementation

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