chore: pre-commit ci hook, dart format

This commit is contained in:
edde746
2026-04-18 12:40:35 +02:00
parent 2bd9e6655f
commit 3da51f9d64
128 changed files with 2056 additions and 2048 deletions
+2 -10
View File
@@ -9,11 +9,7 @@ class CaptureBuffer {
final double seekStartSeconds;
final double seekEndSeconds;
const CaptureBuffer({
required this.startedAt,
required this.seekStartSeconds,
required this.seekEndSeconds,
});
const CaptureBuffer({required this.startedAt, required this.seekStartSeconds, required this.seekEndSeconds});
/// Absolute epoch second of the earliest seekable point.
int get seekableStartEpoch => (startedAt + seekStartSeconds).round();
@@ -31,11 +27,7 @@ class CaptureBuffer {
final minOffset = _parseDouble(session['minOffsetAvailable']);
final maxOffset = _parseDouble(session['maxOffsetAvailable']);
if (timeStamp == null || minOffset == null || maxOffset == null) return null;
return CaptureBuffer(
startedAt: timeStamp,
seekStartSeconds: minOffset,
seekEndSeconds: maxOffset,
);
return CaptureBuffer(startedAt: timeStamp, seekStartSeconds: minOffset, seekEndSeconds: maxOffset);
}
static double? _parseDouble(dynamic value) {