formattingOptions property

JsonFormattingOptions get formattingOptions

Get JSON formatting options which returns standardJsonFormatting if not set.

Implementation

JsonFormattingOptions get formattingOptions =>
    _formattingOptions ?? standardJsonFormatting;
set formattingOptions (JsonFormattingOptions options)

Set JSON formatting options used when generating JSON with stringify.

Implementation

set formattingOptions(JsonFormattingOptions options) {
  _formattingOptions = options;
}