anyOf method
- Iterable<
DType> dtypes
Implementation
DTypeSelector anyOf(Iterable<DType> dtypes) {
final values = List<DType>.unmodifiable(dtypes);
if (values.isEmpty || values.length > 10000) {
throw ArgumentError.value(
dtypes,
'dtypes',
'must contain 1 to 10000 values',
);
}
return _dtype('anyOf', {
'dtypes': values.map((value) => value.toJson()).toList(growable: false),
});
}