StatsBarButton constructor

StatsBarButton({
  1. VoidCallback? onPressed,
})

Optionally supply an 'onPressed' routine.

Implementation

StatsBarButton({VoidCallback? onPressed})
    : super(
        key: const Key('StatsBottomBarButton'),
        text: 'Stats',
        icon: Icons.timeline,
        onPressed: () {
          if (onPressed != null) {
            onPressed();
          }
        },
      );