PerformanceInfo class final

A class that extracts various performance information from a Sanity response.

Constructors

PerformanceInfo({required String query, required int serverTimeMs, required int clientTimeMs, required String shard, required int age})
Creates a new performance information object with the given query, server timing, client timing, shard and age.

Properties

age int
The age of the data that was returned in the response.
final
clientTimeMs int
The time it took for the client to process the response. This is the complete round-trip time.
final
hashCode int
The hash code for this object.
no setterinherited
query String
The query that was sent to the server.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverTimeMs int
The time it took for the server to respond to the query.
final
shard String
The shard that the query was sent to.
final

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