FloatKind constructor

const FloatKind({
  1. bool nonFinite = false,
  2. bool negativeZeroes = false,
  3. double? min,
  4. double? max,
  5. bool isExclusiveMin = false,
  6. bool isExclusiveMax = false,
  7. List<Trait>? traits,
})

A finite 64-bit floating-point integer.

If -0.0 is seen, it is converted to 0.0. Non-finite values are treated as errors.

Use FloatKind.float32 or FloatKind.float64 if you want raw floating-point values (including non-finite values).

Implementation

const FloatKind({
  this.nonFinite = false,
  this.negativeZeroes = false,
  this.min,
  this.max,
  this.isExclusiveMin = false,
  this.isExclusiveMax = false,
  super.traits,
})  : bits = 64,
      _typedDataFactory = Float64List.new,
      super.constructor(name: 'double');