toml 0.7.0
toml: ^0.7.0 copied to clipboard
Parser and encoder for TOML v0.4.0 (Tom's Obvious, Minimal Language) configuration files.
example/README.md
toml.dart Examples #
This directory contains examples for the usage of the toml.dart package.
-
./filesystem_config_loadercontains an example for how to load a configuration file in the Dart VM from the local filesystem. -
./flutter_examplecontains a Flutter example for how to use thetoml.dartlibrary to decode a TOML document as an asset string. -
./http_config_loadercontains an example for how to load a configuration file in the browser via HTTP. -
./toml_encodercontains an example for how to use theTomlDocument.fromMapandTomlDocument.toStringmethods to encode aMapas a TOML document. -
./toml_parsercontains an example for how to use theTomlDocument.parseandTomlDocument.toMapmethods to decode a TOML document from a string that has been read fromstdin. -
./toml_to_jsoncontains an example application for the conversion of TOML documents to JSON.