ApiProvider class

Constructors

ApiProvider({required String appKey, required String version, bool debugMode = true})
Constructor requires a appKey from WooSignal

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

get(dynamic url, {dynamic data}) Future
HTTP GET request using a url
init() Future
Initialize class
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(dynamic url, dynamic data) Future
HTTP POST request using a url and data payload
setDebugMode(bool debugMode) → void
set the ApiProvider's debugMode
setDeviceMeta() Future<void>
Set the device meta
setFcmToken(String token) → void
set the FCM token
setWpUserId(String wpUserId) → void
set the WP user id
toString() String
A string representation of this object.
inherited

Operators

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