add static method

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

Implementation

static Widget add({
  required VoidCallback? onPressed,
  bool isLoading = false,
  double? width,
}) {
  return CustomActionButton(
    text: 'Add',
    onPressed: onPressed,
    isLoading: isLoading,
    underlinedChar: 'A',
    icon: Icons.add,
    width: width,
  );
}