EditBarButton constructor

EditBarButton({
  1. VoidCallback? onPressed,
})

Optionally supply an 'onPressed' routine.

Implementation

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