where method
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(),
),
);
}