dvStudioSourceText function

String dvStudioSourceText(
  1. Map<Object?, Object?> document
)

The text of a document's file: indented JSON and a final newline, the same whether Studio writes it to the project or to its repository, so the two never differ by whitespace.

Implementation

String dvStudioSourceText(Map<Object?, Object?> document) =>
    '${const JsonEncoder.withIndent('  ').convert(document)}\n';