toonDecode function
Convenience function to decode TOON format to Dart objects
Example:
final toonString = 'name: Alice\nage: 30';
final decoded = toonDecode(toonString);
print(decoded); // {name: Alice, age: 30}
Implementation
dynamic toonDecode(String source, {ToonOptions? options}) {
return ToonCodec(options: options).decode(source);
}