bitRange method

  1. @nonVirtual
T bitRange(
  1. int left,
  2. int right
)

Returns a new instance with bits left to right, inclusive.

The result is left-padded with 0's.

Throws RangeError if left or right is out of range.

Implementation

@nonVirtual
T bitRange(int left, int right) {
  _assertMaxBits(left, 'left');
  return wrapSafeValue(value.bitRange(left, right));
}