copyWith method

NavigationCubitState<T> copyWith({
  1. BuiltList<T>? pages,
  2. required int currentIndexPage,
})

Implementation

NavigationCubitState<T> copyWith({
  BuiltList<T>? pages,
  required int currentIndexPage,
}) {
  return NavigationCubitState(
    pages: pages ?? this.pages,
    currentIndexPage: currentIndexPage,
  );
}