cancel static method

Widget cancel({
  1. required VoidCallback? onPressed,
  2. double? width,
})

Implementation

static Widget cancel({
  required VoidCallback? onPressed,
  double? width,
}) {
  return CustomActionButton(
    text: 'Cancel',
    onPressed: onPressed,
    underlinedChar: 'C',
    icon: Icons.cancel,
    borderColor: Colors.orange,
    textColor: Colors.orange,
    width: width,
  );
}