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