copyWith method
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;