singleUseChoiceFor method
Implementation
ChatPermissionChoice? singleUseChoiceFor(ChatPermissionDecision decision) {
if (decision == ChatPermissionDecision.cancel) return null;
final matching = choices
.where((choice) => choice.decision == decision && choice.isSingleUse)
.toList(growable: false);
return matching.length == 1 ? matching.single : null;
}