InfospectNetworkCall constructor
InfospectNetworkCall(
- int id, {
- DateTime? time,
- String endpoint = '',
- String client = '',
- bool loading = true,
- bool secure = false,
- String method = '',
- String server = '',
- String uri = '',
- int duration = 0,
- InfospectNetworkRequest? request,
- InfospectNetworkResponse? response,
- InfospectNetworkError? error,
Creates an instance of the InfospectNetworkCall
class.
Parameters:
- id: The unique identifier for the Network call.
time
: The timestamp when the Network call was created (default is the current time).
Implementation
InfospectNetworkCall(this.id,
{DateTime? time,
String endpoint = '',
this.client = '',
this.loading = true,
this.secure = false,
this.method = '',
this.server = '',
this.uri = '',
this.duration = 0,
this.request,
this.response,
this.error})
: createdTime = time ?? DateTime.now(),
endpoint = endpoint.isEmpty ? "/" : endpoint;