FirebaseAnalyticsPlugin class
A plugin that provides functionality for Firebase Analytics. This plugin requires adding the patapata_firebase_core package to your application.
Constructors
Properties
-
app
→ App<
Object> -
The
App
referenced by the plugin.no setterinherited - backend ↔ FirebaseAnalytics
-
A reference to the
FirebaseAnalytics
instance.latefinal -
dependencies
→ List<
Type> -
The list of other plugins that this plugin depends on.
This property should be used to add the types of other plugins that are required for this
Plugin
to work. For example, when using the FirebaseAnalyticsPlugin, you need to include FirebaseCorePlugin.no setter - disposed → bool
-
Get whether this
Plugin
has been disposed.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- initialized → bool
-
Whether this
Plugin
is initialized or not.no setterinherited -
methodCallLogs
→ List<
MethodCall> -
finalinherited
- name → String
-
The unique name of this
Plugin
. This property is referenced in various situations, such as when enabling or disabling the plugin, and when enabling or disabling the mock, and when communicating with Native code.no setterinherited -
Get the list of
NavigatorObserver
s to pass to Patapata for this plugin. This Observers list will ultimately be added to theApp.navigatorObservers
list.no setter - remoteConfigEnabledKey → String
-
Get the RemoteConfig key name to enable or disable this plugin.
no setterinherited
- requireRemoteConfig → bool
-
This property determines whether initialization should occur after the RemoteConfig system has started when set to true,
or before it starts when set to false.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createAppWidgetWrapper(
Widget child) → Widget -
Wraps the Widget that will ultimately be passed to Flutter's runApp function.
This is used when the plugin needs to wrap
App.createAppWidget
to add widgets to theApp
's widget tree.inherited -
createLocalConfig(
) → LocalConfig? -
Specify the
LocalConfig
to register with Patapata for this plugin.inherited -
createRemoteConfig(
) → RemoteConfig? -
Specify the
RemoteConfig
to register with Patapata for this plugin.inherited -
createRemoteMessaging(
) → RemoteMessaging? -
Specify the
RemoteMessaging
to register with Patapata for this plugin.inherited -
dispose(
) → FutureOr< void> -
Disposes this
Plugin
. Always callsuper.dispose
before any other overridden code. In general you should not call this method asApp
will do that for you. -
init(
App< Object> app) → FutureOr<bool> - Initializes the FirebaseAnalyticsPlugin.
-
mockPatapataDisable(
) → void -
This is a function to mock patapataDisable running in native code.
It will only be called when
kIsTest
is true.inherited -
mockPatapataEnable(
) → void -
This is a function to mock patapataEnable running in native code.
It will only be called when
kIsTest
is true.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setMockMethodCallHandler(
) → void -
A function for mocking a MethodChannel.
inherited
-
setMockStreamHandler(
) → void -
A function for mocking a MockStreamHandler.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited