TreeController<TKey, TData> constructor
TreeController<TKey, TData> ({
- required TickerProvider vsync,
- TreeAnimationStyle animationStyle = const TreeAnimationStyle(),
- double indentWidth = 0.0,
- Comparator<
TreeNode< ? comparator,TKey, TData> >
Creates a tree controller.
Requires a TickerProvider to drive animations. Typically this is the State object of the widget that creates the controller, using TickerProviderStateMixin or SingleTickerProviderStateMixin.
Implementation
TreeController({
required TickerProvider vsync,
TreeAnimationStyle animationStyle = const TreeAnimationStyle(),
double indentWidth = 0.0,
this.comparator,
}) : assert(animationStyle.debugValidate()),
_animationStyle = animationStyle,
_indentWidth = indentWidth,
_vsync = vsync;