yRunOnce<T> function

T yRunOnce<T>(
  1. String key,
  2. T fn()
)

Implementation

T yRunOnce<T>(String key, T Function() fn) {
  if (!_onceResults.containsKey(key)) {
    _onceResults[key] = fn();
  }
  return _onceResults[key];
}