NetEntity constructor

NetEntity({
  1. NetType type = NetType.http,
  2. required String api,
  3. String url = '',
  4. String headers = '',
  5. String method = '',
  6. String parameters = '',
  7. String responseBody = '',
  8. required DateTime startTime,
  9. int spendTime = 0,
  10. int statusCode = 100,
  11. bool showDetail = false,
})

Implementation

NetEntity({
  this.type = NetType.http,
  required this.api,
  this.url = '',
  this.headers = '',
  this.method = '',
  this.parameters = '',
  this.responseBody = '',
  required this.startTime,
  this.spendTime = 0,
  this.statusCode = 100,
  this.showDetail = false,
});