DeleteBarButton constructor

DeleteBarButton({
  1. VoidCallback? onPressed,
})

Implementation

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