DependencyCheck enum

Defines the type of dependency validation to be performed when initializing a component or system.

This is used to ensure that required dependencies are available and properly configured before usage.

Example

void validateDependencies(DependencyCheck check) {
  switch (check) {
    case DependencyCheck.NONE:
      print("No dependency check will be performed.");
      break;
    case DependencyCheck.OBJECTS:
      print("Only object references will be checked.");
      break;
    case DependencyCheck.ALL:
      print("All dependencies will be validated.");
      break;
  }
}
Inheritance
Available extensions

Values

NONE → const DependencyCheck

No dependency validation is performed.

const DependencyCheck(0)
OBJECTS → const DependencyCheck

Only checks object references for availability.

const DependencyCheck(1)
ALL → const DependencyCheck

Performs validation on all dependencies.

const DependencyCheck(2)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
Numeric representation of the dependency check type.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromValue(int value) DependencyCheck
Returns the DependencyCheck that corresponds to the given integer value.
valueOf(String name) DependencyCheck
Returns the DependencyCheck that matches the given name.

Constants

values → const List<DependencyCheck>
A constant List of the values in this enum, in order of their declaration.