IntKind.unsigned constructor

const IntKind.unsigned({
  1. int bits = bitsWhenJsCompatibleUnsigned,
  2. int min = 0,
  3. int? max,
  4. List<Trait>? traits,
})

Constructs a Kind for an unsigned int.

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

Implementation

const IntKind.unsigned({
  this.bits = bitsWhenJsCompatibleUnsigned,
  int this.min = 0,
  this.max,
  super.traits,
})  : isUnsigned = true,
      _typedDataFactory = isRunningInJs ? null : Uint64List.new,
      super.constructor(name: 'int');