quote method

String quote()

Returns a new String wrapped in double quotes or itself if quoted.

Implementation

String quote() => !isQuoted ? "\"$this\"" : this;