toString method
Add parentheses to the debug information for lists to help make the list bounds clear.
Implementation
String toString() {
if (hasBrackets ||
lengthAsList == 0 ||
(lengthAsList == 1 && separator == ListSeparator.comma)) {
return super.toString();
}
return "(${super.toString()})";
}