BrightnessProperty<T> class
interface
- Inheritance
-
- Object
- ContextualProperty<
T> - BrightnessProperty
- Implementers
Constructors
- BrightnessProperty({required T light, required T dark})
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
BuildContext context) → T -
Returns a value of type
Tthat depends on provided BuildContext.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
resolveAs<
T> (T light, T dark, BuildContext context) → T -
Resolves the value for the given context if
valueis a ContextualProperty, otherwise returns the value itself.override