toString method

  1. @override
String toString()
override

Returns this chain of operations as String.

Implementation

@override
String toString() {
  if (text.contains('"')) {
    return "'$text'";
  } else {
    return '"$text"';
  }
}