callWith1<R, U> method
R
callWith1<R, U>(
- R fn<
A>( - U
- U? value
Implementation
R callWith1<R, U>(R Function<A>(U) fn, [U? value]) {
assert(args.length == 1);
return args.first.provideTo(<A>() => fn<A>(value as U));
}