FirebaseCore class
Initialize Firebase.
Run initilize
to initialize.
When initialization is complete, initialized is set to true
.
You can also use firebase_options.dart
created with the flutterfire command by passing FirebaseOptions at initialization.
If region is passed along with functionsEndpoint, the functions endpoint can be obtained.
Hosting endpoints can also be obtained at hostingEndpoint.
Firebaseの初期化を行ないます。
initilize
を実行して初期化してください。
初期化が完了するとinitializedがtrue
になります。
初期化時にFirebaseOptionsを渡すことでflutterfireコマンドで作成したfirebase_options.dart
も利用可能です。
合わせてregionを渡すとfunctionsEndpointでFunctionsのエンドポイントを取得できるようになります。
hostingEndpointでHostingのエンドポイントも取得可能です。
await FirebaseCore.initialize();
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
- app → FirebaseApp?
-
Returns the FirebaseApp instance.
no setter
- functionsEndpoint → String
-
Returns a Firebase Functions endpoint.
no setter
- hostingEndpoint → String
-
Returns the Firebase Hosting endpoint.
no setter
- initialized → bool
-
Returns
true
if Firebase is initialized.no setter - region ↔ FirebaseRegion
-
Returns the Firebase region.
latefinal
Static Methods
-
initialize(
{FirebaseRegion region = FirebaseRegion.asiaNortheast1, FirebaseOptions? options}) → Future< void> - Initialize Firebase.