HomeBarButton constructor
HomeBarButton({
- VoidCallback? onPressed,
Optionally supply an 'onPressed' routine.
Implementation
HomeBarButton({VoidCallback? onPressed})
: super(
key: const Key('HomeBottomBarButton'),
text: 'Home',
icon: Icons.home,
onPressed: () {
if (onPressed != null) {
onPressed();
}
},
);