InfospectNetworkCall constructor

InfospectNetworkCall(
  1. int id, {
  2. DateTime? time,
  3. String endpoint = '',
  4. String client = '',
  5. bool loading = true,
  6. bool secure = false,
  7. String method = '',
  8. String server = '',
  9. String uri = '',
  10. int duration = 0,
  11. InfospectNetworkRequest? request,
  12. InfospectNetworkResponse? response,
  13. 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;