isValidlyFilled property

bool get isValidlyFilled

Returns true if the measure is correctly filled.

Uses the same voice-aware value as currentMusicalValue: the bar is complete as soon as its longest voice matches the time signature.

Implementation

bool get isValidlyFilled {
  final ts = timeSignature;
  if (ts == null) return true; // No time signature = no validation
  return (currentMusicalValue - ts.measureValue).abs() <= capacityTolerance;
}