copyWith method

ModelAdapterCollectionQuery copyWith({
  1. Map<String, String>? headers,
  2. String? method,
  3. int? page,
  4. CollectionModelQuery? query,
})

Change headers or method, page, and query and copy.

Copied objects are recognized as the same object.

headersもしくはmethodpagequeryを変更してコピーします。

コピーされたオブジェクトは同一オブジェクトとして認識されます。

Implementation

ModelAdapterCollectionQuery copyWith({
  Map<String, String>? headers,
  String? method,
  int? page,
  CollectionModelQuery? query,
}) {
  return ModelAdapterCollectionQuery(
    query: query ?? this.query,
    callback: callback,
    origin: origin,
    listen: listen,
    headers: headers ?? this.headers,
    method: method ?? this.method,
    page: page ?? this.page,
  );
}