BrightnessProperty<T> class interface

Inheritance
Implementers

Constructors

BrightnessProperty({required T light, required T dark})
const

Properties

dark → T
final
hashCode int
The hash code for this object.
no setterinherited
light → T
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(BuildContext context) → T
Returns a value of type T that 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 value is a ContextualProperty, otherwise returns the value itself.
override