Authorizer<T extends Auth<AuthKeys>> class

Constructors

Authorizer({required AuthDelegate delegate, required AuthBackupDelegate<T> backup, AuthMessages msg = const AuthMessages()})
Authorizer.of(BuildContext context)
factory

Properties

args Object?
no setter
auth Future<T?>
no setter
canUseBiometric Future<Response<T>>
no setter
delegate AuthDelegate
final
errorText String
no setter
hasAnonymous bool
no setter
hashCode int
The hash code for this object.
no setterinherited
id String?
no setter
isBiometricEnabled Future<bool>
no setter
isLoggedIn Future<bool>
no setter
liveError ValueNotifier<String>
no setter
liveLoading ValueNotifier<bool>
no setter
liveMessage ValueNotifier<String>
no setter
liveStatus ValueNotifier<AuthStatus>
no setter
liveUser ValueNotifier<T?>
no setter
loading bool
no setter
message String
no setter
msg AuthMessages
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status AuthStatus
no setter
user → T?
no setter

Methods

biometricEnable(bool enabled) Future<Response<T>>
delete({Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
dispose() → void
emit(AuthResponse<T> data, {Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
initialize([bool initialCheck = true]) Future<T?>
isSignIn({Provider? provider}) Future<AuthResponse<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signInAnonymously({GuestAuthenticator? authenticator, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInByBiometric({Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInByEmail(EmailAuthenticator authenticator, {SignByBiometricCallback<T>? onBiometric, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInByOtp(OtpAuthenticator authenticator, {bool storeToken = false, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInByPhone(PhoneAuthenticator authenticator, {Object? multiFactorInfo, Object? multiFactorSession, Duration timeout = const Duration(minutes: 2), void onComplete(Credential credential)?, void onFailed(AuthException exception)?, void onCodeSent(String verId, int? forceResendingToken)?, void onCodeAutoRetrievalTimeout(String verId)?, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInByUsername(UsernameAuthenticator authenticator, {Object? args, String? id, SignByBiometricCallback<T>? onBiometric, bool notifiable = true}) Future<AuthResponse<T>>
signInWithApple({OAuthAuthenticator? authenticator, bool storeToken = false, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInWithFacebook({OAuthAuthenticator? authenticator, bool storeToken = false, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInWithGameCenter({OAuthAuthenticator? authenticator, bool storeToken = false, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInWithGithub({OAuthAuthenticator? authenticator, bool storeToken = false, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInWithGoogle({OAuthAuthenticator? authenticator, bool storeToken = false, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInWithMicrosoft({OAuthAuthenticator? authenticator, bool storeToken = false, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInWithPlayGames({OAuthAuthenticator? authenticator, bool storeToken = false, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInWithSAML({OAuthAuthenticator? authenticator, bool storeToken = false, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInWithTwitter({OAuthAuthenticator? authenticator, bool storeToken = false, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signInWithYahoo({OAuthAuthenticator? authenticator, bool storeToken = false, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signOut({Provider? provider, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signUpByEmail(EmailAuthenticator authenticator, {SignByBiometricCallback<T>? onBiometric, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
signUpByUsername(UsernameAuthenticator authenticator, {SignByBiometricCallback<T>? onBiometric, Object? args, String? id, bool notifiable = true}) Future<AuthResponse<T>>
toString() String
A string representation of this object.
inherited
update(Map<String, dynamic> data, {String? id, bool notifiable = true}) Future<T?>
verifyPhoneByOtp(OtpAuthenticator authenticator) Future<AuthResponse<Auth<AuthKeys>>>

Operators

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

Static Properties

type Type?
getter/setter pair

Static Methods

attach<T extends Auth<AuthKeys>>(Authorizer<T> authorizer) → void
dettach<T extends Auth<AuthKeys>>() → void
init<T extends Auth<AuthKeys>>({required AuthDelegate delegate, required AuthBackupDelegate<T> backup, AuthMessages msg = const AuthMessages(), bool initialCheck = true}) Future<void>
instanceOf<T extends Auth<AuthKeys>>() Authorizer<T>