like method

CollectionModelQuery like(
  1. String key,
  2. String? text
)

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,
    )
  ]);
}