NUIWeb class

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disposeBusEvent(NUIBusEventListener listener, {String channel = NUIConnectionUtil.CONNECTIVITY_CHANNEL}) → void
doDELETE<T extends NUIEnt>({required String url, Map<String, String>? headers, Map<String, String>? params, NUIEnt? bodyEnt, dynamic body, String? bodyString, String? pathVariable, Encoding? encoding, NUIEntMapper<T>? entity, bool storeTemp = false}) Future<NUIHttpResponse<T>>
Calling a DELETE request to the server
override
doGET<T extends NUIEnt>({required String url, Map<String, String>? headers, Map<String, String>? params, String? pathVariable, NUIEntMapper<T>? entity, bool storeTemp = false}) Future<NUIHttpResponse<T>>
Calling a GET request to the server
override
doMultipartPOST<T extends NUIEnt>({required String url, Map<String, String>? headers, Map<String, String>? params, String? pathVariable, List<MultipartFile>? files, Map<String, String>? fields, Encoding? encoding, NUIEntMapper<T>? entity, bool storeTemp = false}) Future<NUIHttpResponse<T>>
Calling a POST request to the server with multipart
override
doPATCH<T extends NUIEnt>({required String url, Map<String, String>? headers, Map<String, String>? params, String? pathVariable, NUIEnt? bodyEnt, dynamic body, String? bodyString, Encoding? encoding, NUIEntMapper<T>? entity, bool storeTemp = false}) Future<NUIHttpResponse<T>>
Calling a PATCH request to the server
override
doPOST<T extends NUIEnt>({required String url, Map<String, String>? headers, Map<String, String>? params, String? pathVariable, NUIEnt? bodyEnt, dynamic body, String? bodyString, NUIEntMapper<T>? entity, Encoding? encoding, bool storeTemp = false}) Future<NUIHttpResponse<T>>
Calling a POST request to the server
override
doPUT<T extends NUIEnt>({required String url, Map<String, String>? headers, Map<String, String>? params, String? pathVariable, NUIEnt? bodyEnt, dynamic body, String? bodyString, Encoding? encoding, NUIEntMapper<T>? entity, bool storeTemp = false}) Future<NUIHttpResponse<T>>
Calling a PUT request to the server
override
downloadFromURL({required String url}) Future<Uint8List?>
Download a file from a URL endpoint
override
getCacheResponse({required String url, String? pathVariable}) NUIHttpCacheResponse?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processOnRequestIntercept({required String url, String? pathVariables, Map<String, String>? params, Map<String, String> headers = const {}, dynamic body, NUIEnt? bodyEnt, String? bodyString}) Future<NUIInterceptor>
processOnResponseIntercept({required String responseBody, NUIEntMapper? entity}) Future<NUIInterceptor>
sendBusEvent<T>(NUIBusEventData<T> data, {String channel = NUIConnectionUtil.CONNECTIVITY_CHANNEL}) → void
subscribeBusEvent<T>(NUIBusEventListener listener, {String channel = NUIConnectionUtil.CONNECTIVITY_CHANNEL}) → void
toString() String
A string representation of this object.
inherited
wrapException<T extends NUIEnt>(NUIEntMapper<T>? entity, HttpExceptionWrapper<T> task) Future<NUIHttpResponse<T>>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

get({String? module}) NUIWeb

Constants

ERROR_INTERCEPTOR → const int