VKLogin class

Class for implementing login via VK.

Constructors

VKLogin({bool debug = false})

Properties

accessToken Future<VKAccessToken?>
Returns access token if the user is logged in.
no setter
debug bool
If true all requests and results will be printed in console.
final
hashCode int
The hash code for this object.
no setterinherited
isInitialized bool
Returns true if SDK initialized.
no setter
isLoggedIn Future<bool>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkVersion Future<String?>
Returns currently used VK SDK.
no setter

Methods

getUserEmail() Future<String?>
Get user email.
getUserProfile() Future<Result<VKUserProfile?>>
Get user profile information.
initSdk({List<VKScope>? scope, List<String>? customScope}) Future<Result<bool>>
Initialize SDK.
logIn({List<VKScope> scope = const [], List<String>? customScope}) Future<Result<VKLoginResult>>
Start log in VK process.
logOut() Future<void>
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