callWith1<R, U> method

R callWith1<R, U>(
  1. R fn<A>(
    1. U
    ), [
  2. 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));
}