TreeController<TKey, TData> constructor
TreeController<TKey, TData> ({
- required TickerProvider vsync,
- Duration animationDuration = const Duration(milliseconds: 300),
- Curve animationCurve = Curves.easeInOut,
- 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,
Duration animationDuration = const Duration(milliseconds: 300),
Curve animationCurve = Curves.easeInOut,
double indentWidth = 0.0,
this.comparator,
}) : _animationDuration = animationDuration,
_animationCurve = animationCurve,
_indentWidth = indentWidth,
_vsync = vsync;