FirebaseLoggerMasamuneAdapter class

MasamuneAdapter for using Firebase Crashlytics and Firebase Analytics.

As for Firebase Crashlytics, it is configured to supplement errors during app crashes (including in and out of Flutter).

As for Firebase Analytics, we will pass a FirebaseLoggerAdapter to log screen transitions and events.

Firebase settings can be specified by passing options.

You can specify instances of FirebaseAnalytics, FirebaseCrashlytics or FirebasePerformance by passing analytics, crashlytics or performance.

Firebase CrashlyticsとFirebase Analyticsを利用するためのMasamuneAdapter

Firebase Crashlyticsに関してはアプリクラッシュ時(Flutter内外含む)のエラーを補足するように設定を行います。

Firebase Analyticsに関しては、FirebaseLoggerAdapterを渡すようにし、画面遷移やイベントをロギングします。

optionsを渡すとFirebaseの設定を指定することが可能です。

analyticscrashlyticsperformanceを渡すとFirebaseAnalyticsFirebaseCrashlyticsFirebasePerformanceのインスタンスを指定可能です。

Inheritance
  • Object
  • MasamuneAdapter
  • FirebaseLoggerMasamuneAdapter

Constructors

FirebaseLoggerMasamuneAdapter.new({FirebaseOptions? options, FirebaseOptions? iosOptions, FirebaseOptions? androidOptions, FirebaseOptions? webOptions, FirebaseOptions? linuxOptions, FirebaseOptions? windowsOptions, FirebaseOptions? macosOptions, FirebaseAnalytics? analytics, FirebaseCrashlytics? crashlytics, FirebasePerformance? performance, List<LoggerAdapter> loggerAdapters = const []})
MasamuneAdapter for using Firebase Crashlytics and Firebase Analytics.
const

Properties

analytics → FirebaseAnalytics
The instance of FirebaseAnalytics to be used.
no setter
androidOptions FirebaseOptions?
Options for initializing Firebase.
final
crashlytics → FirebaseCrashlytics
The instance of FirebaseCrashlytics to be used.
no setter
hashCode int
The hash code for this object.
no setterinherited
iosOptions FirebaseOptions?
Options for initializing Firebase.
final
linuxOptions FirebaseOptions?
Options for initializing Firebase.
final
loggerAdapters List<LoggerAdapter>
Adapters can be defined to add logger functionality.
no setteroverride
macosOptions FirebaseOptions?
Options for initializing Firebase.
final
Observers can be set up to monitor transitions between pages.
no setteroverride
options FirebaseOptions?
Options for initializing Firebase.
no setter
performance → FirebasePerformance
The instance of FirebaseCrashlytics to be used.
no setter
priority double
The priority of the adapter.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
runZonedGuarded bool
If you set this to true, you can wrap runApp with runZonedGuarded.
final
webOptions FirebaseOptions?
Options for initializing Firebase.
final
windowsOptions FirebaseOptions?
Options for initializing Firebase.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBuildApp(BuildContext context, Widget app) Widget
Widgets can be added during the build of MasamuneApp.
override
onBuildPage(BuildContext context, Widget page) Widget
Returning Widget will build the widget.
inherited
onError(Object error, StackTrace stackTrace) → void
You can describe the process when runZonedGuarded is set to true.
override
onInitScope(MasamuneAdapter adapter) → void
Called when initializing MasamuneAdapterScope.
inherited
onMaybeBoot(BuildContext context) FutureOr<void>
It may be called during application initialization.
inherited
onPreRunApp(WidgetsBinding binding) FutureOr<void>
You can describe the process before runApp.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited