copyWith method

PagingHelper copyWith({
  1. bool? hasNext,
  2. bool? loadNext,
  3. String? nextUrl,
  4. int? page,
  5. int? totalPages,
  6. WidgetCallback? error,
  7. Widget? loader,
})

Implementation

PagingHelper copyWith({
  bool? hasNext,
  bool? loadNext,
  String? nextUrl,
  int? page,
  int? totalPages,
  WidgetCallback? error,
  Widget? loader,
}) =>
    PagingHelper(
      hasNext: hasNext ?? this.hasNext,
      loadNext: loadNext ?? this.loadNext,
      nextUrl: nextUrl ?? this.nextUrl,
      page: page ?? this.page,
      totalPages: totalPages ?? this.totalPages,
      error: error ?? this.error,
      loader: loader ?? this.loader,
    );