performLayout method

void performLayout(
  1. ChantContext ctxt
)

Implementation

void performLayout(ChantContext ctxt) {
  final owner = notation;
  if (owner is! Note) return;
  recalculateMetrics(ctxt);
  bounds = bounds.copyWith(
    x: owner.bounds.x + math.max(0, (ctxt.staffInterval - bounds.width) / 2),
  );
}