DVCapture constructor
DVCapture({
- required DVDatabaseAdapter database,
- required Duration retention,
- DateTime clock()?,
- Duration lease = const Duration(seconds: 30),
- 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');
}
}