onRequest method
Called when the request is about to be sent.
Implementation
@override
void onRequest(RequestOptions options, handler) {
options.extra.addAll({
'showInternalServerErrors': exceptionOptions.showInternalServerErrors
});
options.extra
.addAll({'showNetworkErrors': exceptionOptions.showNetworkErrors});
options.extra.addAll(
{'showValidationErrors': exceptionOptions.showValidationErrors});
return handler.next(options);
}