delete static method

Widget delete({
  1. required VoidCallback? onPressed,
  2. bool isLoading = false,
  3. double? width,
})

Implementation

static Widget delete({
  required VoidCallback? onPressed,
  bool isLoading = false,
  double? width,
}) {
  return CustomActionButton(
    text: 'Delete',
    onPressed: onPressed,
    isLoading: isLoading,
    underlinedChar: 'D',
    icon: Icons.delete,
    borderColor: Colors.red,
    textColor: Colors.red,
    width: width,
  );
}