getConfig method

dynamic getConfig(
  1. String? key
)

获取配置项 key 必须唯一,定义在各模块中

Implementation

dynamic getConfig(String? key) {
  if (key == null || key.isEmpty) {
    return null;
  }
  return _configMap[key];
}