NetworkData class

Data class for network request measurements

Constructors

NetworkData({required String url, required String method, int? statusCode, required int duration, required int responseSize, required bool hasError, String? errorMessage})
Creates a new network data instance
const

Properties

duration int
The time taken for the request in milliseconds
final
errorMessage String?
The error message if any
final
hasError bool
Whether the request resulted in an error
final
hashCode int
The hash code for this object.
no setterinherited
method String
The HTTP method used
final
responseSize int
The size of the response in bytes
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
The response status code
final
url String
The request URL
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