copyWith method

TLoadOptions<T> copyWith({
  1. int? page,
  2. int? itemsPerPage,
  3. String? search,
})

Creates a copy with updated properties.

Implementation

TLoadOptions<T> copyWith({
  int? page,
  int? itemsPerPage,
  String? search,
}) {
  return TLoadOptions<T>(
    page: page ?? this.page,
    itemsPerPage: itemsPerPage ?? this.itemsPerPage,
    search: search ?? this.search,
  );
}