byIndex method
Selector
byIndex( - Iterable<int> indices, {
- bool strict = true,
})
Implementation
Selector byIndex(Iterable<int> indices, {bool strict = true}) {
final values = List<int>.unmodifiable(indices);
if (values.isEmpty || values.length > 10000) {
throw ArgumentError.value(
indices,
'indices',
'must contain 1 to 10000 values',
);
}
for (final value in values) {
if (value < -0x8000000000000000 || value > 0x7fffffffffffffff) {
throw RangeError.value(value, 'indices', 'must fit signed 64-bit');
}
}
return _selector('selectorByIndex', {'indices': values, 'strict': strict});
}