reflectFutureOf method

  1. @override
ReflectedType reflectFutureOf(
  1. Type type
)
override

Implementation

@override
ReflectedType reflectFutureOf(Type type) {
  var inner = reflectType(type);
  dart.TypeMirror _mirror;
  if (inner is _ReflectedClassMirror) {
    _mirror = inner.mirror;
  } else if (inner is _ReflectedTypeMirror) {
    _mirror = inner.mirror;
  } else {
    throw ArgumentError('$type is not a class or type.');
  }

  var future = dart.reflectType(Future, [_mirror.reflectedType]);
  return _ReflectedClassMirror(future as dart.ClassMirror);
}