onSelect property

VoidCallback? onSelect
final

The button was clicked and selected.

The optional callback allows for the button to be used eg as a trailing widget in a ListTile. Keep it null to not have any callback and use the click event in the parent instead.

Implementation

final VoidCallback? onSelect;