GetxFire class

GetxFire

Recommendation: instantiate GetxFire class into a global variable and use it all over the app runtime.

Warning: instantiate it after initFirebase. One of good places is insdie the first widget loaded by runApp() or home screen.

Constructors

GetxFire()

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

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

Static Properties

auth FirebaseAuth
Returns an instance using the default FirebaseApp.
no setter
converter ConverterHelper
Returns an instance using the default ConverterHelper.
no setter
currentUser User?
Returns the current User if they are currently signed-in, or null if not.
no setter
firestore FirestoreService
Returns an instance using the default FirestoreService.
no setter
firestoreInstance FirebaseFirestore
Returns an instance using the default FirestoreService.
no setter
helper Helper
Returns an instance using the default Helper.
no setter
lottiePath LottiePath
Returns an instance using the default LottiePath.
no setter
openDialog OpenDialog
Returns an instance using the default OpenDialog.
no setter
storage StorageService
Returns an instance using the default StorageService.
no setter

Static Methods

createUserWithEmailAndPassword({required String email, required String password, bool isSuccessDialog = false, bool isErrorDialog = true, dynamic onSuccess(UserCredential? userCredential)?, dynamic onError(String? code, String? message)?}) Future<UserCredential?>
create User With Email And Password in Firebase Auth.
hideProgressHud() Future<void>
Returns an instance using the default ProgressHud.hide().
init({String? name, FirebaseOptions? options}) Future<FirebaseApp>
Initializes a new FirebaseApp instance by name and options and returns the created app. This method should be called before any usage of FlutterFire plugins. The default app instance cannot be initialized here and should be created using the platform Firebase integration.
showProgressHud() Future<void>
Returns an instance using the default ProgressHud.show().
signInAnonymously({bool isSuccessDialog = false, bool isErrorDialog = true, dynamic onSuccess(UserCredential? userCredential)?, dynamic onError(String? code, String? message)?}) Future<UserCredential?>
Logs in signInAnonymously
signInWithEmailAndPassword({required String email, required String password, bool isSuccessDialog = false, bool isErrorDialog = true, dynamic onSuccess(UserCredential? userCredential)?, dynamic onError(String? code, String? message)?}) Future<UserCredential?>
Logs into Firebase Auth.
signInWithGoogle({bool isSuccessDialog = false, bool isErrorDialog = true, dynamic onSuccess(UserCredential? userCredential)?, dynamic onError(String? code, String? message)?}) Future<UserCredential?>
Logs into Firebase Auth by Google Signin.
signOut({bool isSocialLogout = true}) Future<void>
Logs out from Firebase Auth and All Social Login.
userChanges() Stream<User?>
Returns the current User Changes if they are currently signed-in, or null if not.
userStateChanges(void setState(void ())) StreamSubscription<User?>
Returns the current User State Changes if they are currently signed-in, or null if not.