AuthProvider class
Constructors
- AuthProvider({required String clientId})
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
-
clearCache(
) → dynamic - Clear caches and cookies of the webview
-
getAccount(
) → Future< String> - Wrapper around request to get list of accounts
-
getUserInfo(
) → Future< UserInfo> - Get user info of the user if logged in
-
hideWallet(
) → void - Hide the wallet if visible
-
init(
{required BuildContext context, String theme = 'dark'}) → dynamic - Initialization of the arcana sdk
-
isLoggedIn(
) → bool - Whether the user is currently logged in
-
isVisible(
) → bool - Gets wallet visibility
-
loginWithOtp(
String email) → Future< void> -
Starts login with OTP on
email
-
loginWithSocial(
String kind) → Future< void> -
Starts login with login type -
kind
-
logout(
) → void - logout the user if logged in
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
request(
{required String method, dynamic params}) → Future - EIP1193 request to the wallet
-
sendTransaction(
{dynamic params}) → Future< String> - Wrapper around request to send transaction
-
showWallet(
) → dynamic - Show arcana wallet if user is logged in
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited