toString method

String toString ()
override

Returns the result of the JavaScript objects toString method.

Implementation

String toString() {
  try {
    return JS('String', 'String(#)', _jsObject);
  } catch (e) {
    return super.toString();
  }
}