tryGet method
Tries to get a configuration value for the specified key.
List0
will return true if a value is found for the specified key.
List1
will contain the value if List0
is not false.
Implementation
@override
List<dynamic> tryGet(String key) {
if (data.containsKey(key)) {
return [true, data[key]];
}
return [false];
}