BottomNavigationController.fromValue constructor

BottomNavigationController.fromValue(
  1. BottomNavigationValue? value, {
  2. required TickerProvider vsync,
  3. Duration duration = const Duration(milliseconds: 300),
})

Implementation

BottomNavigationController.fromValue(
  BottomNavigationValue? value, {
  required TickerProvider vsync,
  Duration duration = const Duration(milliseconds: 300),
})  : initialIndex = value?.currentIndex ?? 0,
      _animationController = AnimationController(
        value: 1.0,
        vsync: vsync,
        duration: duration,
      ),
      super(
        value ?? const BottomNavigationValue(),
      );