TestResult constructor

TestResult(
  1. TestType type,
  2. double transferRate,
  3. SpeedUnit unit, {
  4. int durationInMillis = 0,
})

Implementation

TestResult(this.type, this.transferRate, this.unit, {int durationInMillis = 0})
    : durationInMillis = durationInMillis - (durationInMillis % 1000);