mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
14 lines
505 B
Dart
14 lines
505 B
Dart
import 'package:firebase_core/firebase_core.dart';
|
|
|
|
class LunaFirebase {
|
|
/// Return an instance of [FirebaseApp].
|
|
///
|
|
/// Throws an error if [LunaFirebase.initialize] has not been called.
|
|
static FirebaseApp get instance => Firebase.app();
|
|
|
|
/// Initialize Firebase and configuration.
|
|
///
|
|
/// This must be called before anything accesses Firebase services, or an exception will be thrown.
|
|
Future<void> initialize({ String name }) async => await Firebase.initializeApp();
|
|
}
|