get<T> method

T get<T>(
  1. String key
)

Implementation

T get<T>(String key) {
  final arg = args[key];
  if(arg is! T) {
    throw TypeError();
  }

  return arg;
}