EventsBarButton constructor
EventsBarButton({
- VoidCallback? onPressed,
Optionally supply an 'onPressed' routine.
Implementation
EventsBarButton({VoidCallback? onPressed})
: super(
text: 'Events',
icon: Icons.event,
onPressed: () {
if (onPressed != null) {
onPressed();
}
},
);