fromValue static method

IOSSafariDismissButtonStyle? fromValue(
  1. int? value
)

Gets a possible IOSSafariDismissButtonStyle instance from int value.

Implementation

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