DVCrashIngest constructor

DVCrashIngest({
  1. required DVCrashReportRepository repository,
  2. int perInstallPerHour = 30,
  3. int? perSourcePerHour,
  4. int maxBytes = 262144,
  5. DateTime clock()?,
  6. void log(
    1. String line
    )?,
})

Implementation

DVCrashIngest({
  required this.repository,
  this.perInstallPerHour = 30,
  int? perSourcePerHour,
  this.maxBytes = 262144,
  DateTime Function()? clock,
  void Function(String line)? log,
})  : perSourcePerHour =
          perSourcePerHour ?? installsPerSource * perInstallPerHour,
      _clock = clock ?? DateTime.now,
      _log = log ?? _defaultLog;