# fromValue static method

DependencyCheck fromValue(

1. int value

)

Returns the DependencyCheck that corresponds to the given integer `value`.

    final check = DependencyCheck.fromValue(1);
    print(check == DependencyCheck.OBJECTS); // true

Throws an IllegalArgumentException if the value does not map to any check.

## Implementation

    static DependencyCheck fromValue(int value) {
      return switch (value) {
        0 => NONE,
        1 => OBJECTS,
        2 => ALL,
        _ => throw IllegalArgumentException('No DependencyCheck with value $value')
      };
    }