codeUnitAt method

int codeUnitAt(
  1. int position
)

UTF-16 code unit at position, or -1 when out of range.

Implementation

int codeUnitAt(int position) {
  if (position < 0 || position >= length) return -1;
  return _root.codeUnitAt(position);
}