where method

TQuery where(
  1. List<Object?>? values
)
inherited

You can filter only those elements in the values array that contain one of the values for key.

valuesの配列にkeyに対する値のいずれかが含まれる要素のみをフィルタリングすることができます。

Implementation

TQuery where(List<T?>? values) {
  if (values == null) {
    return _toQuery(_modelQuery);
  }
  return _toQuery(
    _modelQuery.where(
      key,
      values
          .where((e) => e != null)
          .cast<T>()
          .map((e) => e as Object)
          .toList(),
    ),
  );
}