The phase of kind, when this beat has one.
kind
Phase? phase(PhaseKind kind) => phases.where((p) => p.kind == kind).firstOrNull;