VerificationLevel.parse constructor

VerificationLevel.parse(
  1. int value
)

Parses a VerificationLevel from an int.

The value must be a valid verification level.

Implementation

factory VerificationLevel.parse(int value) => VerificationLevel.values.firstWhere(
      (level) => level.value == value,
      orElse: () => throw FormatException('Invalid verification level', value),
    );