mapAs1<U> method

T mapAs1<U>(
  1. U fn<V>()
)

Implementation

T mapAs1<U>(U Function<V>() fn) {
  return T.args.single.provideTo<U>(fn) as T;
}