TouchRippleController class
The class defines and manages states, listeners, a context and other values related to touch ripple, ensuring that each state exists uniquely within the controller.
See Also, An instance of this class can be referenced and accessed externally to attach or detach states or related values.
- Inheritance
-
- Object
- Listenable
- TouchRippleController
Constructors
Properties
-
activeEffects
→ List<
TouchRippleEffect> -
Returns all the current touch ripple effects that are attached
and active to this touch ripple controller as a list.
no setter
- context ↔ TouchRippleContext
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
override
-
attach(
TouchRippleEffect effect) → dynamic - Delegates the task of adding a touch ripple effect to this controller to ensure it can be reliably detached and disposed later./
-
attachByKey(
String key, TouchRippleEffect effect) → dynamic - Delegates the task of adding a touch ripple effect to this controller to ensure it can be reliably detached and disposed late by a given key.
-
delegateFrom(
TouchRippleController other) → dynamic - Delegates all states and context from a given controller to itself and removes all states from the given controller, ensuring that each state exists only once in the controller.
-
detach(
TouchRippleEffect effect) → dynamic - Delegates the task of detaching and disposing of a touch ripple effect to ensure consistency with attach function.
-
detachByKey(
String key) → dynamic - Delegates the task of detaching and disposing of a touch ripple effect to ensure consistency with attachByKey function by a given key.
-
dispose(
) → dynamic - Disposes all instances related the controller(e.g. TouchRippleEffect).
-
getEffectByKey<
T extends TouchRippleEffect> (String key) → T? - Returns the ripple effect instance corresponding a given key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void - Notifies that the state related to the controller has changed.
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited