GetSocial class Null safety




hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Properties

currentUser Future<CurrentUser?>
Current user. [...]
version → dynamic
Returns SDK version

Static Methods

addOnCurrentUserChangedListener(dynamic listener(CurrentUser)) → void
Add listener to be notified when the user was changed. The listener action is executed on the main thread, so be careful with operations, that you put inside on {@link OnCurrentUserChangedListener#onUserChanged(CurrentUser)} method. Listener will be invoked when: SDK initialization is finished; [...]
addOnInitializedListener(Function listener) → void
Set a listener Function, which will be invoked after SDK initialized. Function will be executed immediately, if SDK is already initialized.
getLanguage() Future<String>
Current SDK language
handleAction(GetSocialAction action) → void
Handle the provided action if it's supported. [...]
init() → void
Initialize GetSocial SDK if automatic initialization is disabled.
initWithIdentity(Identity identity) Future<void>
reset() Future
Reset current user without creating a new anonymous user. SDK stays uninitialized.
resetUser() Future
Reset current user and create a new anonymous one.
setLanguage(String language) Future<bool>
Set SDK language. [...]
switchUser(Identity identity) Future
Switches the current user with the User corresponding to the details provided. [...]