getConfig method

SmartConfig getConfig(
  1. String key
)

获取配置

如果 key 不存在,抛出 StateError

Implementation

SmartConfig getConfig(String key) {
  final config = _configs[key];
  if (config == null) {
    throw StateError(
      'SmartClientManager: Config for "$key" not found. '
      'Please call register("$key", config) first.',
    );
  }
  return config;
}