operator [] method Null safety

String operator [] (
  1. int index
)

Implementation

String operator [](int index) {
  if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length))
    throw new RangeError.index(index, this);
  return JS("String", "#[#]", this, index);
}