get<T> method

T? get<T>(
  1. String path, {
  2. T converter(
    1. dynamic
    )?,
})

Reads from the configs

Use path to access to a specific key

Use convertor to cast the valeu to your custom type

Map<String, dynamic> map = { 'a': 1, 'b': {'c': 2}};
GlobalConfigs.loadFromMap(map);

GlobalConfigs().get('a'); // 1
GlobalConfigs().get('b.c'); // 2
```dart

Implementation

T? get<T>(String path, {T Function(dynamic)? converter}) =>
    gato.get(configs, path, converter: converter);