SubpixelRippleManager class

A pure ViewModel/state manager that coordinates multiple expanding sub-pixel Braille touch ripples.

This class handles addition, lifecycle management, and pruning of active ripples. For rendering in a declarative UI tree, use SubpixelRippleWidget with this manager.

Constructors

SubpixelRippleManager()

Properties

hasActiveRipples bool
Returns true if there are active ripples undergoing animation.
no setter
hashCode int
The hash code for this object.
no setterinherited
ripples List<SubpixelRipple>
Exposes the list of active ripples.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addRipple(Point<int> position, {Color color = Colors.white, int durationMs = 500, int? startTime}) → void
Spawns a new ripple centered at position.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Buffer buffer) → void
Composites the expanding sub-pixel circles onto the given target buffer.
toString() String
A string representation of this object.
inherited
updateRipples([int? now]) → void
Prunes completed ripples.

Operators

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