DVCapture constructor

DVCapture({
  1. required DVDatabaseAdapter database,
  2. required Duration retention,
  3. DateTime clock()?,
  4. Duration lease = const Duration(seconds: 30),
  5. Duration strandedAfter = const Duration(minutes: 5),
})

Implementation

DVCapture({
  required this.database,
  required this.retention,
  DateTime Function()? clock,
  this.lease = const Duration(seconds: 30),
  this.strandedAfter = const Duration(minutes: 5),
}) : _clock = clock ?? DateTime.now {
  if (retention <= Duration.zero) {
    throw ArgumentError.value(
        retention, 'retention', 'must be a positive, declared bound');
  }
}