setDateTimeCaptureInterval method
Update the current Filter with a CaptureInterval created by the provided start and end DateTime objects
Implementation
void setDateTimeCaptureInterval({DateTime? start, DateTime? end}) {
final interval = CaptureInterval();
if (start != null) {
interval.start = Timestamp()..seconds = Int64((start.millisecondsSinceEpoch / 1000).floor());
}
if (end != null) {
interval.end = Timestamp()..seconds = Int64((end.millisecondsSinceEpoch / 1000).floor());
}
this.interval = interval;
}