onPressed property
Callback when the button is pressed.
If null, the action is disabled: it stays in place, ignores taps, and is
reported as disabled to assistive technology. On GlassStyle.ios27 and
GlassStyle.ios26 its title is drawn in CupertinoColors.tertiaryLabel,
as a disabled UIAlertAction is; on GlassStyle.classic the button is
dimmed like any disabled GlassButton.
Implementation
final VoidCallback? onPressed;