operator << method

  1. @override
Int32 operator <<(
  1. int n
)
override

Left bit-shift operator.

Returns the result of shifting the bits of this integer by shiftAmount bits to the left. Low-order bits are filled with zeros.

Implementation

@override
Int32 operator <<(int n) {
  if (n < 0) {
    throw ArgumentError(n);
  }
  if (n >= 32) {
    return ZERO;
  }
  return Int32(_i << n);
}