setWithLength<T> method
- @Deprecated('This generator is deprecated and will be removed in 2.0.0.' "It's not possible to reliably generate sets with a given length. For " 'example, any.setWithLength(3, any.bool) is impossible.')
A generator that returns Sets with the given length
.
Implementation
@core.Deprecated('This generator is deprecated and will be removed in 2.0.0.'
"It's not possible to reliably generate sets with a given length. For "
'example, any.setWithLength(3, any.bool) is impossible.')
Generator<core.Set<T>> setWithLength<T>(core.int length, Generator<T> item) {
return setWithLengthInRange(length, length + 1, item);
}