onPress property
Callback fired when the user taps this button.
completemust be called after processing to dismiss the loading screen and rebuild the template — identical to AAListItem behaviour.selfis a reference to the tapped button itself.
Implementation
final Future<void> Function(Function() complete, AAGridButton self)? onPress;