specFor method

Resolves family to its effective spec, applying the inheritance chain. The ONE mapping from a declared family to its timing.

Implementation

TreeAnimationSpec specFor(TreeAnimationFamily family) {
  switch (family) {
    case TreeAnimationFamily.expandCollapse:
      return expandCollapse;
    case TreeAnimationFamily.enterExit:
      return effectiveEnterExit;
    case TreeAnimationFamily.reorderSlide:
      return reorderSlide;
    case TreeAnimationFamily.makeRoom:
      return effectiveMakeRoom;
    case TreeAnimationFamily.dropSettle:
      return effectiveDropSettle;
  }
}