ModelAdapterCollectionQuery constructor

const ModelAdapterCollectionQuery({
  1. required CollectionModelQuery query,
  2. void callback(
    1. ModelUpdateNotification update
    )?,
  3. Object? origin,
  4. bool listen = true,
  5. int page = 1,
  6. Map<String, String> headers = const {},
  7. String? method,
})

Query class to be passed when executing each function of ModelAdapter.

Use ModelAdapterDocumentQuery when executing functions for collections. Use ModelAdapterDocumentQuery to execute document queries.

ModelAdapterの各機能を実行する際に渡すクエリークラス。

コレクション用の機能を実行する際に利用します。ドキュメントのクエリを実行する際はModelAdapterDocumentQueryをご利用ください。

Implementation

const ModelAdapterCollectionQuery({
  required this.query,
  this.callback,
  this.origin,
  this.listen = true,
  this.page = 1,
  this.headers = const {},
  this.method,
});