float function
Returns an arbitrary that generates a double value.
Parameters:
min
: The minimum value to generate.max
: The maximum value to generate.minExcluded
: Whether the minimum value is excluded from the range.maxExcluded
: Whether the maximum value is excluded from the range.nan
: Whether to include NaN values.infinity
: Whether to include infinity values.
Implementation
Arbitrary<double> float({
double? min,
double? max,
bool? minExcluded,
bool? maxExcluded,
bool? nan,
bool? infinity,
}) =>
FloatArbitrary(
FloatStrategy(
min: min,
max: max,
minExcluded: minExcluded,
maxExcluded: maxExcluded,
nan: nan,
infinity: infinity,
),
);