handleError method
This method have to handle of passed error and optional StackTrace.
Implementation
@override
void handleError(Object error, {StackTrace? stackTrace}) {
debugPrint(error.toString());
if (stackTrace != null) {
debugPrintStack(stackTrace: stackTrace);
}
}