# valueOf static method

DependencyCheck valueOf(

1. String name

)

Returns the DependencyCheck that matches the given `name`.

    final check = DependencyCheck.valueOf("all");
    print(check == DependencyCheck.ALL); // true

Throws an IllegalArgumentException if no matching check exists.

## Implementation

    static DependencyCheck valueOf(String name) {
      return switch (name.toLowerCase()) {
        'none' => NONE,
        'objects' => OBJECTS,
        'all' => ALL,
        _ => throw IllegalArgumentException('No DependencyCheck with name $name')
      };
    }