schemeFor method
The harmony scheme to use instead of the drawn one, when schemes
offers it; null keeps the draw.
Implementation
HarmonyScheme? schemeFor(List<Weighted<HarmonyScheme>> schemes) {
final want = intent.harmony;
if (want == null) return null;
return schemes.any((w) => w.value == want && w.weight > 0) ? want : null;
}