addConfig method

void addConfig(
  1. String? key,
  2. dynamic value
)

添加配置项 key 必须唯一,定义在各模块中 value 配置对象

Implementation

void addConfig(String? key, dynamic value) {
  if (key == null || key.isEmpty || value == null) {
    return;
  }
  _configMap[key] = value;
}