goTo method
Scrolls line number (from 1) to the top of the source, showing it first
when only the preview is up.
Implementation
@override
void goTo(int number) {
final jump = lineJumper;
if (lines.isEmpty || jump == null) return deferGoTo(number);
if (viewMode.value == MarkdownViewMode.preview) viewMode.value = MarkdownViewMode.code;
jump(number.clamp(1, lines.length) - 1);
}