ColdStartTimer class
Measures how long the app took to render its first frame.
start is called at the top of FlutterDevToolkit.init; the timer stops on
the first post-frame callback. The result is therefore "time from toolkit
init to first frame", which is as close to a cold start as a package can
observe without platform hooks — it excludes engine boot and Dart VM
startup that happen before main() runs.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- coldStart → Duration?
-
Null until the first frame has rendered.
no setter
-
version
→ ValueNotifier<
int> -
Bumped once the measurement lands, so the Performance tab can refresh.
final