Skip to main content

DefaultFirebaseOptions class

<p>Default <a href="https:pub.dev/documentation/firebase_core_platform_interface/4.8.0/firebase_core_platform_interface/FirebaseOptions-class.html">FirebaseOptions</a> for use with your Firebase apps.</p> <p>Example:</p> <pre class="language-dart"><code class="language-dart">import 'firebase_options.dart'; ... await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, ); </code></pre>

Constructors

DefaultFirebaseOptions ()

Properties

hashCodeint

The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>

runtimeTypeType

A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>

Methods

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
<span class="feature">inherited</span>

toString() String

A string representation of this object.
<span class="feature">inherited</span>

Operators

operator ==(Object other) bool

The equality operator.
<span class="feature">inherited</span>

Static Methods

android(Map<String, dynamic> androidFirebaseOptions) FirebaseOptions

Scaffolds androidFirebaseOptions around FirebaseOptions.

currentPlatform(Map<String, dynamic> androidFirebaseOptions, Map<String, dynamic> iosFirebaseOptions) FirebaseOptions

Builds and returns <a href="https:pub.dev/documentation/firebase_core_platform_interface/4.8.0/firebase_core_platform_interface/FirebaseOptions-class.html">FirebaseOptions</a> based on the current platform.

ios(Map<String, dynamic> iosFirebaseOptions) FirebaseOptions

Scaffolds iosFirebaseOptions around FirebaseOptions.