baseToYamlString method

String baseToYamlString({
  1. int indentSize = 4,
  2. bool allowUnquotedStrings = true,
})

Implementation

String baseToYamlString({
    int indentSize = 4,
    bool allowUnquotedStrings = true,
}) {
    YAMLWriter _yamlWriter = YAMLWriter(indentSize: indentSize, allowUnquotedStrings: allowUnquotedStrings);
    return FormatterErrorA.tryAndRethrow(
        () => _yamlWriter.write(baseToJson())
    );
}