DeleteBarButton constructor
DeleteBarButton({
- VoidCallback? onPressed,
Optionally supply an 'onPressed' routine.
Implementation
DeleteBarButton({VoidCallback? onPressed})
: super(
key: const Key('DeleteBottomBarButton'),
text: 'Delete',
icon: Icons.delete,
onPressed: () {
if (onPressed != null) {
onPressed();
}
},
);