addPerformance method

void addPerformance(
  1. Performance performance
)

Adds a Performance and ensures the units align.

Implementation

void addPerformance(Performance performance) {
  if (performance.unit == Metadata.unknownUnit) {
    performance.unit = unit;
  }

  performances.add(performance);
}