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