TreeController<TKey, TData> constructor

TreeController<TKey, TData>({
  1. required TickerProvider vsync,
  2. Duration animationDuration = const Duration(milliseconds: 300),
  3. Curve animationCurve = Curves.easeInOut,
  4. double indentWidth = 0.0,
  5. Comparator<TreeNode<TKey, TData>>? comparator,
})

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;