either<T> method
Uses either one of the provided generators to generate a value.
See oneOf for a version of this method to be used if the number of generators is not known at compile-time.
Implementation
Generator<T> either<T>(
Generator<T> first,
Generator<T> second, [
Generator<T>? third,
Generator<T>? fourth,
Generator<T>? fifth,
Generator<T>? sixth,
Generator<T>? seventh,
Generator<T>? nineth,
Generator<T>? tenth,
]) {
return oneOf([
first,
second,
if (third != null) third,
if (fourth != null) fourth,
if (fifth != null) fifth,
if (sixth != null) sixth,
if (seventh != null) seventh,
if (nineth != null) nineth,
if (tenth != null) tenth,
]);
}