FirebaseConfig class
Represents the configuration for Firebase.
This class encapsulates the necessary settings to initialize and use Firebase services within an application. It includes API keys, project identifiers, and other Firebase-specific parameters. It provides methods for converting between JSON and Dart objects for data persistence and serialization.
Constructors
- FirebaseConfig.new({required String apiKey, required String projectId, required String authDomain, required String storageBucket, required String messagingSenderId, required String appId, required String measurementId})
- Creates a FirebaseConfig instance.
-
FirebaseConfig.fromJson(Map<
String, dynamic> json) -
Creates a FirebaseConfig instance from a JSON map.
factory
Properties
- apiKey → String
-
The Firebase API key.
final
- appId → String
-
The Firebase app ID.
final
- authDomain → String
-
The Firebase authentication domain.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- measurementId → String
-
The Firebase measurement ID (for Google Analytics).
final
- messagingSenderId → String
-
The Firebase Cloud Messaging (FCM) sender ID.
final
- projectId → String
-
The Firebase project ID.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storageBucket → String
-
The Firebase storage bucket.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this FirebaseConfig instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited