AuthWrapper class
A wrapper widget that listens to authentication state changes.
This widget ensures that users are directed to the correct screen depending on their authentication state:
- If authenticated, navigates to AppNavigation.
- If not authenticated, navigates to SignInScreen.
Constructors
- AuthWrapper({dynamic key, required dynamic firestore, required dynamic firebaseAuth, required dynamic notificationService})
-
Constructor for AuthWrapper.
const
Properties
- firebaseAuth → dynamic
-
final
- firestore → dynamic
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- notificationService → dynamic
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
dynamic context) → dynamic - Builds the UI based on the authentication state.
-
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