Skip to content

nnnggel/config_reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is config_reader

A flutter library for reading config files online or offline.
github

What format does config_reader support

.properties

readProperties
readOnlineProperties

.json

readJson
readOnlineJson

.yaml

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