copyWith method

PaginatedList<E> copyWith({
  1. List<E>? list,
  2. bool? isLoading,
  3. int? totalCount,
  4. Exception? error,
  5. int? pageSize,
  6. bool? isInitialized,
})

Returns a modified version of the current PaginatedList

Implementation

PaginatedList<E> copyWith({
  List<E>? list,
  bool? isLoading,
  int? totalCount,
  Exception? error,
  int? pageSize,
  bool? isInitialized,
}) =>
    PaginatedList(
      list: list ?? this.list,
      isLoading: isLoading ?? this.isLoading,
      totalCount: totalCount ?? this.totalCount,
      pageSize: pageSize ?? this.pageSize,
      isInitialized: isInitialized ?? _isInitialized,
      error: error,
    ).._backupList = _backupList;