DefaultFirebaseOptions class
Provides platform-specific Firebase configuration options for the application.
Generated by the FlutterFire CLI, this class supplies FirebaseOptions for different platforms (web, Android, iOS, macOS, Windows) to initialize Firebase. Use currentPlatform to get the appropriate configuration for the running platform.
Example:
import 'firebase_options.dart';
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
Constructors
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
- currentPlatform → FirebaseOptions
-
Retrieves the FirebaseOptions for the current platform.
no setter
Constants
- android → const FirebaseOptions
- Firebase configuration options for the Android platform.
- ios → const FirebaseOptions
- Firebase configuration options for the iOS platform.
- macos → const FirebaseOptions
- Firebase configuration options for the macOS platform.
- web → const FirebaseOptions
- Firebase configuration options for the web platform.
- windows → const FirebaseOptions
- Firebase configuration options for the Windows platform.