TouchRippleSpreadingEffect class
- Inheritance
-
- Object
- Listenable
- TouchRippleEffect
- TouchRippleSpreadingEffect
Constructors
- TouchRippleSpreadingEffect({required TouchRippleContext context, required VoidCallback callback, required bool isRejectable, required Offset baseOffset, required TouchRippleBehavior behavior})
Properties
- baseOffset → Offset
-
final
- behavior → TouchRippleBehavior
-
final
- callback → VoidCallback
-
final
- context → TouchRippleContext
-
final
- fadePercent → double
-
Returns animation progress value of fade animation.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAttached ↔ bool
-
Whether the ripple effect is attached to the touch ripple controller.
getter/setter pairinherited
- isInitialized ↔ bool
-
Whether all animation-related instances have been initialized.
getter/setter pairinherited
- isRejectable ↔ bool
-
getter/setter pair
- onDispose ↔ VoidCallback?
-
Called when after the touch ripple effect has fully completed
and the relevant instances have been cleaned up.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spreadPercent → double
-
Returns animation progress value of spread animation.
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
override
-
cancel(
) → void - Resets the speed of the fade-out animation to the speed corresponding to the defined action and forces the effect to fade out. In some cases, it cancels the effect altogether.
-
dispose(
) → void -
Disposes of the Ticker or related animation instances.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAccepted(
) → void - If the gesture could be rejected and is eventually accepted, please call the corresponding function.
-
onRejected(
) → void -
paint(
TouchRippleContext context, Canvas canvas, Size size) → void -
override
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
override
-
start(
) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
sizeToOffset(
Size size) → Offset - Converts the size to an offset and returns it.