DeleteBarButton constructor

DeleteBarButton({
  1. VoidCallback? onPressed,
})

Optionally supply an 'onPressed' routine.

Implementation

DeleteBarButton({VoidCallback? onPressed})
    : super(
        text: 'Delete',
        icon: Icons.delete,
        onPressed: () {
          if (onPressed != null) {
            onPressed();
          }
        },
      );