like method
You can filter only elements that contain the text of text
in the text for key
.
key
に対するテキストにtext
のテキストが含まれる要素のみをフィルタリングすることができます。
Implementation
CollectionModelQuery like(String key, String? text) {
if (text.isEmpty) {
return this;
}
return _copyWithAddingFilter(filters: [
...filters,
ModelQueryFilter._(
type: ModelQueryFilterType.like,
key: key,
value: text,
)
]);
}