feat(config): add ability to set value for variable

This commit is contained in:
Aleksey Kulikov 2021-06-16 16:48:28 +03:00
parent 570e5bad52
commit 2cdcccefc9
4 changed files with 40 additions and 63 deletions

View file

@ -114,7 +114,7 @@ class Config {
Map<String, dynamic> variables = {};
/// Sets value of config key
void setEntry(String key, dynamic value) {
void setVariable(String key, dynamic value) {
try {
if (value.runtimeType == bool) {
config.setBool(configPointer.value, key, value);