FakeFirebasePerformance class
Fake implementation of FirebasePerformance
for testing.
- Implemented types
-
- FirebasePluginPlatform
- Mixed in types
Constructors
Properties
- app ↔ FirebaseApp
-
The
FirebaseApp
for this currentFirebaseMessaging
instance.getter/setter pairoverride - hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- pluginConstants → Map
-
Returns any plugin constants this plugin app instance has initialized.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
isPerformanceCollectionEnabled(
) → Future< bool> -
Determines whether custom performance monitoring is enabled or disabled.
override
-
newHttpMetric(
String url, HttpMethod httpMethod) → HttpMetric -
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
override
-
newTrace(
String name) → Trace -
Creates a
Trace
object with givenname
. 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).override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
setPerformanceCollectionEnabled(
bool enabled) → Future< void> -
Enables or disables custom performance monitoring setup.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited