BottomNavigationController.fromValue constructor
BottomNavigationController.fromValue(
- BottomNavigationValue? value, {
- required TickerProvider vsync,
- 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(),
);