style: apply dart format to six drifted sources

Formatting was clean through 53288116 and then drifted across three commits on
2026-07-30: 1bf7aac7 left one source unformatted, f13f5af6 a second, and
daab4f1e four more. CI's Verify formatting job checks the whole tree, so it has
had six files to report ever since. No pre-commit hook is installed in this
checkout, so the aggregate check never ran locally to catch them.

Formatted with the dart_style revision Dart 3.12.0 bundles, which is what the
pinned Flutter 3.44.0 CI toolchain runs, rather than with a newer local SDK; the
two disagree about some argument-list splits. The current stable formatter
accepts this result as well, so both report the tree clean.
This commit is contained in:
edde746
2026-07-30 14:57:26 +02:00
parent 4c8272d5b1
commit 834895486b
6 changed files with 51 additions and 34 deletions
+5 -8
View File
@@ -20,9 +20,7 @@ void main() {
});
test('captures effective forced-ness from the flag', () {
final intent = SubtitleIntent.fromTrack(
const SubtitleTrack(id: '4', language: 'fre', isForced: true),
);
final intent = SubtitleIntent.fromTrack(const SubtitleTrack(id: '4', language: 'fre', isForced: true));
expect(intent!.forced, isTrue);
});
@@ -54,7 +52,9 @@ void main() {
test('track references become intents with effective forced-ness', () {
final demoted = SubtitlePreference.demoteToIntent(
const SubtitlePreference.track(SubtitleTrack(id: 'source:8', title: 'FR Forced', language: 'fre', codec: 'ass')),
const SubtitlePreference.track(
SubtitleTrack(id: 'source:8', title: 'FR Forced', language: 'fre', codec: 'ass'),
),
);
expect(
demoted,
@@ -75,10 +75,7 @@ void main() {
});
test('metadata-less track references demote to null', () {
expect(
SubtitlePreference.demoteToIntent(const SubtitlePreference.track(SubtitleTrack(id: '2'))),
isNull,
);
expect(SubtitlePreference.demoteToIntent(const SubtitlePreference.track(SubtitleTrack(id: '2'))), isNull);
});
});
}