capacityBits property

int get capacityBits

Bit-width used by the chain pointer storage. Useful to inspect internal memory optimization.

Implementation

int get capacityBits {
  final chainNext = _chainNext;

  if (chainNext is Uint8List) {
    return 8;
  } else if (chainNext is Uint16List) {
    return 16;
  } else if (chainNext is Uint32List) {
    return 32;
  } else if (chainNext is Uint64List) {
    return 64; // VM only
  }

  throw StateError('Unknown TypedDataList type: ${chainNext.runtimeType}');
}