IntKind constructor

const IntKind({
  1. bool isUnsigned = false,
  2. int bits = bitsWhenJsCompatible,
  3. int? min,
  4. int? max,
  5. List<Trait>? traits,
})

Constructs a Kind for a signed int.

The default number of bits is chosen so that isJsCompatible is true.

Implementation

const IntKind({
  this.isUnsigned = false,
  this.bits = bitsWhenJsCompatible,
  this.min,
  this.max,
  super.traits,
})  : _typedDataFactory = isRunningInJs ? null : Int64List.new,
      super.constructor(name: 'int');