MagicService class

Implemented types

Constructors

MagicService({required IReownCore core, required PairingMetadata metadata, required FeaturesConfig featuresConfig})

Properties

email ValueNotifier<String>
final
hashCode int
The hash code for this object.
no setterinherited
isConnected ValueNotifier<bool>
final
isEmailEnabled ValueNotifier<bool>
final
isReady ValueNotifier<bool>
final
isSocialEnabled ValueNotifier<bool>
final
isTimeout ValueNotifier<bool>
final
newEmail ValueNotifier<String>
final
onCompleteSocialLogin Event<CompleteSocialLoginEvent>
getter/setter pairoverride-getter
onMagicConnect Event<MagicConnectEvent>
getter/setter pairoverride-getter
onMagicError Event<MagicErrorEvent>
getter/setter pairoverride-getter
onMagicLoginRequest Event<MagicSessionEvent>
getter/setter pairoverride-getter
onMagicLoginSuccess Event<MagicLoginEvent>
getter/setter pairoverride-getter
onMagicRpcRequest Event<MagicRequestEvent>
getter/setter pairoverride-getter
onMagicUpdate Event<MagicSessionEvent>
getter/setter pairoverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socials List<AppKitSocialOption>
no setteroverride
step ValueNotifier<EmailLoginStep>
final
supportedMethods Map<String, List<String>>
no setteroverride
webview → WebViewWidget
no setteroverride

Methods

awaitFarcasterResponse() Future<bool>
override
completeSocialLogin({required String url}) → void
override
connectEmail({required String value, String? chainId}) Future<void>
override
connectOtp({required String otp}) Future<void>
override
connectSocial({required String uri}) Future
override
disconnect() Future<bool>
override
getChainId() Future<String?>
override
getFarcasterUri({String? chainId}) Future<String?>
override
getSocialRedirectUri({required AppKitSocialOption provider, String? schema, String? chainId}) Future<String?>
override
getUser({required String? chainId, required bool isUpdate}) Future<bool>
override
init({String? chainId}) Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request({String? chainId, required SessionRequestParams request}) Future
override
setEmail(String value) → void
override
setNewEmail(String value) → void
override
setProvider(AppKitSocialOption? provider) → void
override
switchNetwork({required String chainId}) Future<bool>
override
syncTheme(ReownAppKitModalTheme? theme) Future<void>
override
toString() String
A string representation of this object.
inherited
updateEmail({required String value}) Future<void>
override
updateEmailPrimaryOtp({required String otp}) Future<void>
override
updateEmailSecondaryOtp({required String otp}) Future<void>
override

Operators

operator ==(Object other) bool
The equality operator.
inherited