onError abstract method
Called when an error occurs during computation in a Computed instance.
This method is only relevant for middleware attached to Computed instances. It is called when the compute function throws an error.
Parameters:
error: The error that was thrownstackTrace: The stack trace of the error
Implementation
void onError(Object error, StackTrace stackTrace);