setBit method

  1. @nonVirtual
T setBit(
  1. int n
)

Returns with the nth bit from value set.

Throws RangeError if n is out of range.

Implementation

@nonVirtual
T setBit(int n) {
  _assertMaxBits(n, 'n');
  return wrapSafeValue(value.setBit(n));
}