PlexNetworking class
Properties
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 setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
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 , })
→ 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 , dynamic > ? formData , dynamic body })
→ Future <PlexApiResponse >
postMultipart (String url , {Map <String , dynamic > ? query , 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