phase method

Phase? phase(
  1. PhaseKind kind
)

The phase of kind, when this beat has one.

Implementation

Phase? phase(PhaseKind kind) =>
    phases.where((p) => p.kind == kind).firstOrNull;