ContextualProperty<T> class abstract interface

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

lerp<T>(ContextualProperty<T>? a, ContextualProperty<T>? b, double t, T? lerpFunction(T?, T?, double)) ContextualProperty<T?>?
Linearly interpolate between two ContextualPropertys.
resolveAs<T>(T value, BuildContext context) → T
Resolves the value for the given context if value is a ContextualProperty, otherwise returns the value itself.
resolveWith<T>(ContextualPropertyResolver<T> callback) ContextualProperty<T>
Convenience method for creating a ContextualProperty from a ContextualPropertyResolver function alone.