TreeAnimationStyle constructor

const TreeAnimationStyle({
  1. TreeAnimationSpec expandCollapse = defaultSpec,
  2. TreeAnimationSpec? enterExit,
  3. TreeAnimationSpec reorderSlide = defaultSpec,
  4. TreeAnimationSpec? makeRoom,
  5. TreeAnimationSpec? dropSettle,
})

Builds a style from per-family specs. Leaving enterExit, makeRoom or dropSettle null is NOT the same as passing a copy of the family it falls back to: null keeps it inheriting, so a later restyle of the root family carries through to it.

Implementation

const TreeAnimationStyle({
  this.expandCollapse = defaultSpec,
  TreeAnimationSpec? enterExit,
  this.reorderSlide = defaultSpec,
  TreeAnimationSpec? makeRoom,
  TreeAnimationSpec? dropSettle,
}) : _enterExit = enterExit,
     _makeRoom = makeRoom,
     _dropSettle = dropSettle;