errorPageHandler property
set
errorPageHandler
(void callback(HttpRequest))
Overrides the default error handle.
When callback
is invoked, the statusCode
property of the response is
set.
Implementation
set errorPageHandler(void Function(HttpRequest) callback) {
_errorCallback = callback;
}