FpsTracker class

Tracks frames per second (FPS)

Constructors

FpsTracker({int warningThreshold = 45})
Creates a new FPS tracker

Properties

hashCode int
The hash code for this object.
no setterinherited
isTracking bool
Whether the tracker is currently tracking
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream
Stream of tracker data
no setterinherited

Methods

addData(dynamic data) → void
Add data to the stream
inherited
dispose() → void
Dispose the tracker
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDispose() → void
Called when the tracker is disposed
inherited
onStart() → void
Called when tracking starts
onStop() → void
Called when tracking stops
start() → void
Start tracking
inherited
stop() → void
Stop tracking
inherited
toString() String
A string representation of this object.
inherited

Operators

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