-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.md
42 lines (36 loc) · 817 Bytes
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
## What is config_reader
A flutter library for reading config files online or offline.
[github](https://github.com/nnnggel/config_reader)
## What format does config_reader support
[.properties](https://en.wikipedia.org/wiki/.properties)
> readProperties
> readOnlineProperties
[.json](https://en.wikipedia.org/wiki/JSON)
> readJson
> readOnlineJson
[.yaml](https://en.wikipedia.org/wiki/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