OKOption constructor
OKOption({
- VoidCallback? onPressed,
Supply the optionally Callback when pressed. Assigns a boolean True to the result property.
Implementation
OKOption({VoidCallback? onPressed})
: super(
text: 'OK',
onPressed: () {
if (onPressed != null) {
onPressed();
}
},
result: true,
);