getBit method

  1. @nonVirtual
int getBit(
  1. int n
)

Returns the nth bit from value.

Throws RangeError if n is out of range.

Implementation

@nonVirtual
int getBit(int n) {
  _assertMaxBits(n, 'n');
  return value.getBit(n);
}