ToString constructor
If prettyPrint
is set to true, indent
will be default to " ".
Otherwise, indent will be ""
Implementation
const ToString({
bool? prettyPrint,
String? indent,
}) : this.prettyPrint = prettyPrint,
this.indent = (prettyPrint ?? false) ? (indent ?? " ") : null;