BulkAnimator<TKey> class

Constructors

BulkAnimator({required NodeIdRegistry<TKey> nids, required TickerProvider vsync, required void onTick(), required void onStatusChanged(AnimationStatus status)})

Properties

generation int
no setter
group AnimationGroup<TKey>?
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether the bulk source has any members. True when no group exists OR the group exists but has no members.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addMember(TKey key) bool
Adds key to _group.members and updates the nid-keyed mirror. Returns true if the membership state changed. Caller is responsible for bumping the generation if needed (or the coordinator's bumpBulkGen does it as part of the broader bump).
addPending(TKey key) bool
bumpGeneration() → void
Bumps the generation counter. Public so optimized callers can invalidate downstream caches without going through a member mutation. Mirrors today's _bumpBulkGen (controller-side caller would also call coordinator.bumpAnimGen() to bump the broad counter; the coordinator's bumpBulkGen() does both).
clear() → void
Disposes the current group (if any), zeros the mirror, resets generation. Leaves the animator usable for further createGroup calls.
clearForNid(int nid) → void
Per-nid cleanup used by the controller's adopt/release paths. Idempotent.
clearPending() → void
createGroup(Duration duration, Curve curve, {double initialValue = 0.0}) AnimationGroup<TKey>
Creates a fresh AnimationGroup, disposing any prior one first. initialValue is 0.0 for expandAll (forward), 1.0 for collapseAll (reverse). Wires the constructor-injected onTick and onStatusChanged callbacks.
debugAssertConsistent() → void
Debug-only: asserts the bulk member mirror matches _group.members ∪ pendingRemoval exactly across live nids.
dispose() → void
Same as clear plus marks the animator terminal.
disposeGroup() → void
Disposes the current group's controller (if any) and zeros every member's mirror slot. Mirrors today's _disposeBulkAnimationGroup — set the field to null FIRST to prevent the disposing controller's final synchronous status event from interfering.
isMember(TKey key) bool
isMemberNid(int nid) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeMember(TKey key) bool
removePending(TKey key) bool
resizeForCapacity(int newCapacity) → void
snapshot() BulkAnimationData<TKey>
Construct an allocation-free bulk-state snapshot. Mirrors the existing BulkAnimationData.snapshot<TKey>(...) static factory.
toString() String
A string representation of this object.
inherited

Operators

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