copyWith method

BottomNavigationValue copyWith({
  1. int? previousIndex,
  2. int? currentIndex,
})

Implementation

BottomNavigationValue copyWith({
  int? previousIndex,
  int? currentIndex,
}) {
  return BottomNavigationValue(
    previousIndex: previousIndex ?? this.previousIndex,
    currentIndex: currentIndex ?? this.currentIndex,
  );
}