float function

Arbitrary<double> float({
  1. double? min,
  2. double? max,
  3. bool? minExcluded,
  4. bool? maxExcluded,
  5. bool? nan,
  6. bool? infinity,
})

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,
      ),
    );