read<T> method

T read<T>(
  1. String name
)

Implementation

T read<T>(String name) {
  final value = this[name];
  if (value == null) {
    throw Exception('没有设置$name 参数!');
  }
  return value as T;
}