TapResolver<T> class

Associate data to TapStates.

The only required builder is inactive.

If the other builders are not provided, they will fallback to the most common use case :

Constructors

TapResolver({required T inactive(), Object? key, T pressed()?, T disabled()?, T hover()?})
const

Properties

disabled → (T Function()?)
final
hashCode int
The hash code for this object.
no setteroverride
hover → (T Function()?)
final
inactive → T Function()
final
key Object?
The key will serve as the identifier of the equality.
final
pressed → (T Function()?)
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(TapState state) → T
Resolve the value associated to the given state.
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant TapResolver<T> other) bool
The equality operator.
override