fromValue static method

CustomTabsNavigationEventType? fromValue(
  1. int? value
)

Gets a possible CustomTabsNavigationEventType instance from int value.

Implementation

static CustomTabsNavigationEventType? fromValue(int? value) {
  if (value != null) {
    try {
      return CustomTabsNavigationEventType.values
          .firstWhere((element) => element.toValue() == value);
    } catch (e) {
      return null;
    }
  }
  return null;
}