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