TreeAnimationStyle.uniform constructor

TreeAnimationStyle.uniform({
  1. required Duration duration,
  2. required Curve curve,
})

One spec for all five families: sets the two root families and leaves the other three inheriting them.

Implementation

factory TreeAnimationStyle.uniform({
  required Duration duration,
  required Curve curve,
}) {
  final spec = TreeAnimationSpec(duration: duration, curve: curve);
  return TreeAnimationStyle(expandCollapse: spec, reorderSlide: spec);
}