cache1<R, S1> function

R Function() Function(S1) cache1 <R, S1>(
  1. R Function() f(
    1. S1
    )
)

Example:

var selector = cache1((int limit) =>
   () =>
   stateNames.take(limit).toList());

Implementation

R Function() Function(S1) cache1<R, S1>(
  R Function() Function(S1) f,
) =>
    c.cache1_0(f);