toString method

String toString ()

Returns the result of the JavaScript objects toString method.

Implementation

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