Worksdata class
Main class for the Worksdata package.
Constructors
- Worksdata()
-
factory
Properties
- deviceInfoPlugin → DeviceInfoPlugin
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- prefs ↔ SharedPreferences
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init(
{required WorksdataConfig worksdataConfig}) → Future< void> - To initiate Works plugin. Ensure this method is called in the main.dart or the place initiating the application.
-
log(
String actionId, {Map? data, String? type, WorksActionType? worksActionType}) → void - Send log information to Works API
-
login(
String uid, {bool toLog = true, Map? additionalInfo}) → void - Get uid & sending mapping between uid and tempId to Works API
-
logout(
{bool toLog = true}) → Future< void> - Flush uid & reset the tempId.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited