ScanInfo constructor Null safety

ScanInfo(
  1. {int? averageAttenuation,
  2. int? minimumAttenuation,
  3. int? secondsSinceLastScan}
)

Implementation

ScanInfo({
  int? averageAttenuation,
  int? minimumAttenuation,
  int? secondsSinceLastScan,
})  : averageAttenuation = averageAttenuation ?? 0,
      minimumAttenuation = minimumAttenuation ?? 0,
      secondsSinceLastScan = secondsSinceLastScan ?? 0;