withLineEndingAt method

void withLineEndingAt(
  1. Note note
)

For terminating hanging lines with no lower notes

Implementation

void withLineEndingAt(Note note) {
  if (lastNote == null) return;

  final line = NeumeLineVisualizer(ctxt, lastNote!, note, true);
  neume.addVisualizer(line);
  x -= line.bounds.width;
  line.bounds = line.bounds.copyWith(x: x);

  neume.addVisualizer(line);

  lastNote = note;
}