animationDuration property

Duration get animationDuration

Duration for expand/collapse animations.

Mutable at runtime. Setting a new value propagates to every in-flight AnimationController (operation groups and the bulk group) so their remaining progress plays at the new rate. The per-node standalone ticker re-reads this on every tick, so its animations adjust on the next frame. Newly started animations pick up the new duration at construction time.

Implementation

Duration get animationDuration => _animationDuration;
set animationDuration (Duration value)

Implementation

set animationDuration(Duration value) {
  if (value == _animationDuration) {
    return;
  }
  _animationDuration = value;
  _bulkAnimationGroup?.controller.duration = value;
  for (final group in _operationGroups.values) {
    group.controller.duration = value;
  }
}