copyWith method

S2ChoiceLoaderInfo<T> copyWith({
  1. List<T>? values,
  2. String? query,
  3. int? page,
  4. int? skip,
  5. int? limit,
})

Creates a copy of this S2ChoiceLoaderInfo but with the given fields replaced with the new values.

Implementation

S2ChoiceLoaderInfo<T> copyWith({
  List<T>? values,
  String? query,
  int? page,
  int? skip,
  int? limit,
}) {
  return S2ChoiceLoaderInfo<T>(
    values: values ?? this.values,
    query: query ?? this.query,
    page: page ?? this.page,
    skip: skip ?? this.skip,
    limit: limit ?? this.limit,
  );
}