affirmative property
SurfaceChoice?
get
affirmative
The choice that grants or confirms, by its label; null when none is clearly affirmative, so a prompt is never steered to a deny.
Implementation
SurfaceChoice? get affirmative {
for (final label in _affirmativeOrder) {
for (final c in choices) {
if (c.text.toLowerCase() == label) return c;
}
}
return null;
}