FirebaseService class
Unified service for Firebase Analytics and Crashlytics.
Exposes nullable getters that return real instances when useFirebase is
true, or null when disabled. Callers use null-aware access:
firebase.analytics?.logAppOpen();
firebase.crashlytics?.recordError(e, stack);
Constructors
- FirebaseService()
-
const
Properties
- analytics → FirebaseAnalytics?
-
The FirebaseAnalytics instance, or
nullif Firebase is disabled.no setter - analyticsObserver → FirebaseAnalyticsObserver?
-
Returns a FirebaseAnalyticsObserver for use with navigation observers, or
nullif Firebase is disabled.no setter - crashlytics → FirebaseCrashlytics?
-
The FirebaseCrashlytics instance, or
nullif Firebase is disabled.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
log(
String message) → void - Logs a custom message to Firebase Crashlytics if enabled.
-
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