call method

T call()

Lazily evaluates the function passed into the constructor.

Implementation

T call() {
  if (_isSet) {
    return _val!;
  }
  _isSet = true;
  _val = _func();
  return _val;
}