ArrowIntegerType constructor

ArrowIntegerType(
  1. int bitWidth, {
  2. bool signed = true,
})

Implementation

ArrowIntegerType(this.bitWidth, {this.signed = true}) {
  if (bitWidth != 8 &&
      bitWidth != 16 &&
      bitWidth != 32 &&
      bitWidth != 64 &&
      bitWidth != 128) {
    throw ArgumentError.value(
      bitWidth,
      'bitWidth',
      'must be 8, 16, 32, 64, or 128',
    );
  }
}