onCompute method

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

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

@override
void onCompute(V? value, Object? error, StackTrace? stackTrace) {
  _resolvedAt = DateTime.now();
}