Split generateSlide into per-slide-type serialisers (341 to 110 lines) #52
No reviewers
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck!52
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/split-generateslide"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First refactor behind the method-length ratchet from #51.
generateSlidewas a 341-line method: aswitchoverSlideTypewith a fat body per case. Each case body moves verbatim into a_writeXxxSlidehelper in a new part (extension _MarkdownSerialize on MarkdownService), and the switch becomes a thin dispatcher.Why this is safe
SlideTypecase (each now a one-line call), so adding a new slide type still fails to compile until it is handled here — the compiler guard the slide-type checklist depends on stays intact.Result
generateSlide: 341 → 110 lines; itsmethodLengthBaselineentry is removed (now 27 baselined).Verification
flutter analyze --fatal-infos— cleanflutter test— 921 passed (incl. the markdown round-trip suite)dart run tool/check_method_length.dart— green, 27 baselineddart format— clean