FirebasePerformanceWeb class

Web implementation for FirebasePerformancePlatform

Inheritance
  • Object
  • PlatformInterface
  • FirebasePerformanceWeb

Constructors

FirebasePerformanceWeb()
Builds an instance of FirebasePerformanceWeb Performance web currently only supports the default app instance

Properties

app → FirebaseApp
Returns the FirebaseApp for the current instance.
no setterinherited
appInstance → FirebaseApp?
The FirebaseApp this instance was initialized with.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
mockDelegate ← Performance
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delegateFor({required FirebaseApp app}) → FirebasePerformancePlatform
Enables delegates to create new instances of themselves if a none default FirebaseApp instance is required by the user. Currently only default Firebase app only.
isPerformanceCollectionEnabled() Future<bool>
Determines whether custom performance monitoring is enabled or disabled.
newHttpMetric(String url, HttpMethod httpMethod) → HttpMetricPlatform
Creates a HttpMetric object for collecting network performance data for one request/response. Only works for native apps. A stub class is created for web which does nothing.
newTrace(String name) → TracePlatform
Creates a Trace object with given name. Traces can be used to measure the time taken for a sequence of steps. Traces also include “Counters”. Counters are used to track information which is cumulative in nature (e.g., Bytes downloaded).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setPerformanceCollectionEnabled(bool enabled) Future<void>
Enables or disables custom performance monitoring setup.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FirebasePerformanceWeb
Initializes a stub instance to allow the class to be registered.
no setter

Static Methods

registerWith(Registrar registrar) → void
Called by PluginRegistry to register this plugin for Flutter Web