VKID class
A class that provides the ability to work with VKID SDK.
Constructors
- VKID.new()
Properties
-
currentAuthData
→ Future<
AuthData?> -
An instance of current auth parameters, including token and user.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
logsEnabled
→ Future<
bool> -
Whether logs are enabled. Currently works only on Android.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
Initiates the authorization process with optional
params
. -
fetchUser(
{dynamic onSuccess(User user) = _defaultOnUserFetched, dynamic onError(FetchUserError user) = _defaultOnUserFetchError, FetchUserParams params = const FetchUserParams._()}) → void - Fetches user data.
-
logout(
{dynamic onSuccess() = _defaultOnLogout, dynamic onError(LogoutError error) = _defaultOnLogoutError, LogoutParams params = const LogoutParams._()}) → void - Logs out the current user.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshToken(
{dynamic onSuccess(RefreshTokenData data) = _defaultOnTokenRefreshed, dynamic onError(RefreshTokenError refreshTokenError) = _defaultOnRefreshTokenError, RefreshTokenParams params = const RefreshTokenParams._()}) → void -
Initiates token refreshing with optional
params
. -
setLogsEnabled(
bool value) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getInstance(
) → Future< VKID> - Provides an instance of this class.