NetworkHttp class

Available extensions

Constructors

NetworkHttp()
factory

Properties

aesEncryptor → Encrypter?

Available on NetworkHttp, provided by the GettersEx extension

EC instance.
no setter
aesIv → IV?

Available on NetworkHttp, provided by the GettersEx extension

EC instance.
no setter
buildNo String

Available on NetworkHttp, provided by the GettersEx extension

Build number.
no setter
config NetworkHttpConfig

Available on NetworkHttp, provided by the GettersEx extension

Configuration instance.
no setter
deviceBrand String

Available on NetworkHttp, provided by the GettersEx extension

Device brand, android only.
no setter
deviceDisplay String

Available on NetworkHttp, provided by the GettersEx extension

Device displaying name, android only.
no setter
deviceHardware String

Available on NetworkHttp, provided by the GettersEx extension

Device hardware name, android only.
no setter
deviceId String

Available on NetworkHttp, provided by the GettersEx extension

Device unique ID.
no setter
deviceModel String

Available on NetworkHttp, provided by the GettersEx extension

Device model name.
no setter
dio → Dio

Available on NetworkHttp, provided by the GettersEx extension

Utils.
no setter
hashCode int
The hash code for this object.
no setterinherited
language String

Available on NetworkHttp, provided by the GettersEx extension

Language code.
no setter
memoryCache Map<String, String>

Available on NetworkHttp, provided by the GettersEx extension

The memory caches container.
no setter
parser NetworkHttpParser

Available on NetworkHttp, provided by the GettersEx extension

Http response parser instance.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String

Available on NetworkHttp, provided by the GettersEx extension

Base info.
no setter

Methods

download(String url, String savePath) Future<File>

Available on NetworkHttp, provided by the DownloadEx extension

File download.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(String url, Map<String, dynamic> params, {required NetworkMethodType method, bool absoluteUrl = false, bool isRawResponse = false, bool isSimpleResponse = false, bool isNeedAutoSetupDeviceInfo = true, bool isUseMemoryCache = false, String? cacheKey, Map<String, String>? customHeaders, List<String>? ignoreErrorCodes}) Future<Map<String, dynamic>>

Available on NetworkHttp, provided by the RequestEx extension

Http request.
setup({required NetworkHttpConfig config}) → dynamic

Available on NetworkHttp, provided by the SetupEx extension

Setup.
setupDeviceInfo() → dynamic

Available on NetworkHttp, provided by the SetupEx extension

Initializing.
toString() String
A string representation of this object.
inherited
upload(String url, {required FileUploadingType type, required List<List<int>> fileBytes, String? fileKey, String? fileSuffix, Map<String, dynamic>? params, dynamic onSendProgress(int count, int total)?}) Future<Map<String, dynamic>>

Available on NetworkHttp, provided by the UploadEx extension

File upload.

Operators

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

Static Properties

shared NetworkHttp
no setter