BottomBarController constructor

BottomBarController({
  1. required TickerProvider vsync,
  2. bool snap = true,
  3. double? dragLength,
})

Creates a BottomBarController with the given vsync ticker provider

Implementation

BottomBarController({
  required TickerProvider vsync,
  this.snap: true,
  double? dragLength,
})  : _animationController = AnimationController(vsync: vsync),
      assert(dragLength == null || dragLength > 0),
      dragLength = dragLength {
  _animationController.addStatusListener(_statusListener);
}