call method

  1. @override
T call()
override

Returns the previously evaluated asynchronous value of the function passed into the constructor. Will panic if the value has not yet been evaluated. Prefer force for safer context.

Implementation

@override
@pragma("vm:prefer-inline")
T call() {
  if (_val == null) {
    panic(
        "Cannot get the result of an async LazyCell synchronously if the value has not yet been computed asynchronously.");
  }
  return _val!;
}