EventsBarButton constructor

EventsBarButton({
  1. VoidCallback? onPressed,
})

Implementation

EventsBarButton({VoidCallback? onPressed})
    : super(
        text: 'Events',
        icon: Icons.event,
        onPressed: () {
          if (onPressed != null) {
            onPressed();
          }
        },
      );