ToString constructor

const ToString({
  1. bool? prettyPrint,
  2. String? indent,
})

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;