ModelRefBase<T> constructor
const
ModelRefBase<T> (
- DocumentModelQuery modelQuery
Class for defining relationships between models.
You can have that relationship as data by passing a query for the related document to modelQuery.
Since it is a mutable class and has an interface to DocumentBase, it can be replaced by DocumentBase by implementing ModelRefBase and mixing in ModelRefMixin.
モデル間のリレーションを定義するためのクラス。
modelQueryに関連するドキュメントのクエリーを渡すことでそのリレーションをデータとして持つことができます。
ミュータブルクラスでかつDocumentBaseのインターフェースを備えているためModelRefBaseを実装し、ModelRefMixinをミックスインすることでDocumentBaseで置き換えることが可能です。
Implementation
const ModelRefBase(this.modelQuery);