Int32Value constructor

Int32Value(
  1. int value
)

Creates a 32-bit integer value.

Throws an ArgumentError if value is not in the range of a signed 32-bit integer.

Implementation

Int32Value(this.value) {
  if (value < minValue || value > maxValue) {
    throw ArgumentError.value(
      value,
      'value',
      'Int32Value must be a signed 32-bit integer',
    );
  }
}