getAttributes method

int getAttributes(
  1. int index
)

Returns the text attributes bitmask at index.

Implementation

int getAttributes(int index) {
  if (index < 0 || index >= length) {
    throw RangeError.index(index, this, 'index');
  }
  return attributes[index];
}