toYamlString static method

String toYamlString(
  1. dynamic target, {
  2. int indentSize = 4,
  3. bool allowUnquotedStrings = true,
})

Implementation

static String toYamlString(
    dynamic target,
    {
        int indentSize = 4,
        bool allowUnquotedStrings = true,
    }
) {
    YAMLWriter _yamlWriter = YAMLWriter(indentSize: indentSize, allowUnquotedStrings: allowUnquotedStrings);
    return FormatterErrorA.tryAndRethrow(
        () => _yamlWriter.write(target)
    );
}