config_reader 1.0.0 config_reader: ^1.0.0 copied to clipboard
A flutter library for reading config files online or offline.
What is config_reader #
A flutter library for reading config files online or offline.
github
What format does config_reader support #
readProperties
readOnlineProperties
readJson
readOnlineJson
readYaml
readOnlineYaml
Result type #
All method will return a MAP for result. As json and yaml files are designed to support map or LIST as root, config_reader will add a root node for "list".
For example:
json:
[
"Cat",
"Dog",
"Goldfish"
]
yaml:
- Cat
- Dog
- Goldfish
Will return:
{list: [Cat, Dog, Goldfish]}
More case #
see test/config_reader_test.dart