AuthServiceLocator class

Service locator for authentication dependencies.

Initialize this before using any auth features:

await AuthServiceLocator.init(
  googleClientId: kIsWeb ? 'YOUR_WEB_CLIENT_ID' : null,
);

Constructors

AuthServiceLocator()

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 Methods

init({String? googleClientId}) → Future<void>
Initializes all authentication dependencies.
reset() → Future<void>
Resets all registered dependencies. Useful for testing or reinitializing with different configuration.