copyWith method
Implementation
@override
PublicSearchResultState copyWith({
List<PublicSearchResultItem>? records,
dynamic error,
dynamic nextPageKey,
PublicSearchFilters? filter,
List<Next?>? previousPageKeys,
bool? loading,
}) {
final sup = super.copyWith(
records: records,
error: error,
nextPageKey: nextPageKey,
previousPageKeys: previousPageKeys,
);
return PublicSearchResultState(
records: sup.records,
error: sup.error,
nextPageKey: sup.nextPageKey,
previousPageKeys: sup.previousPageKeys,
filter: filter ?? this.filter,
loading: loading ?? this.loading,
);
}