PlexNetworking class

Properties

addHeaders Future<Map<String, String>> Function()?
Override this callback to always attach headers in the request i.e. UserId, AuthToken etc.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allowBadCertificateForHTTPS({HttpOverrides? customOverrides}) → dynamic
Call this method to allow bad https certificate and manually verify them. If you trust your API server and it's certificate you can override the HTTPS system check
downloadFile(String url, {required String filename, required dynamic onProgressUpdate(int downloaded, double? percentage, File? file)}) Future
url will be used as download url for the file
get(String url, {Map<String, dynamic>? query, Map<String, String>? headers}) Future<PlexApiResponse>
isNetworkAvailable() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String url, {Map<String, dynamic>? query, Map<String, String>? headers, Map<String, dynamic>? formData, dynamic body}) Future<PlexApiResponse>
postMultipart(String url, {Map<String, dynamic>? query, Map<String, String>? headers, required Map<String, String> formData, required Map<String, File> files}) Future<PlexApiResponse>
setBasePath(String? basePath) → void
Optional basePath If you not set base path it will suppose you enter complete url in post & download function parameter
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance PlexNetworking
getter/setter pair