Generator<T> class abstract

Constructors

Generator()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typeName → String
Cached string representation of this generator's runtime type. Used by TestCase.draw() to avoid per-draw reflection.
no setter

Methods

flatMap<U>(Generator<U> mapper(T value)) → Generator<U>
generate(TestCase tc) → T
map<U>(U mapper(T value)) → Generator<U>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
where(bool predicate(T value), {int maxAttempts = 100}) → Generator<T>

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

composite<T>(T generateFn(TestCase tc)) → Generator<T>