boolean function

Arbitrary<bool> boolean()

Returns an arbitrary that generates a boolean value.

Implementation

Arbitrary<bool> boolean() => ConstantFromArbitrary([true, false]);