V2RayStatus constructor

V2RayStatus({
  1. String duration = '00:00:00',
  2. int uploadSpeed = 0,
  3. int downloadSpeed = 0,
  4. int upload = 0,
  5. int download = 0,
  6. String state = 'DISCONNECTED',
})

Creates a new V2RayStatus instance with the given parameters.

duration defaults to '00:00:00' if not provided. uploadSpeed defaults to 0. downloadSpeed defaults to 0. upload defaults to 0. download defaults to 0. state defaults to 'DISCONNECTED'.

Implementation

V2RayStatus({
  this.duration = '00:00:00',
  this.uploadSpeed = 0,
  this.downloadSpeed = 0,
  this.upload = 0,
  this.download = 0,
  this.state = 'DISCONNECTED',
});