onCompute method

void onCompute(
  1. V? value,
  2. Object? error,
  3. StackTrace? stackTrace
)

Callback invoked when the computation completes.

Exactly one of value or error will be non-null. If error is non-null, stackTrace contains the associated stack trace.

Implementation

void onCompute(V? value, Object? error, StackTrace? stackTrace) {}