onError 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
@override
void onError(Object error, StackTrace stackTrace) {
print("Error: $error\n$stackTrace");
}