ConfigVariable<T> class
A variable whose value is configurable by the user, either as a static value or as a callback that's called as-needed and whose value is cached.
A config variable's value should be configured in the main()
method of
tool/grind.dart
, before any add*Tasks()
functions are called.
Properties
- defaultValue → T
-
Returns the default value for this variable, even if its value has since
been overridden.
no setter
- fn ← T? Function()
-
Sets the variable's value to the result of calling
callback
.no getter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T
-
The variable's value.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited