Button constructor

const Button({
  1. Key? key,
  2. required String label,
  3. required VoidCallback onPressed,
  4. required ButtonType type,
  5. IconData? prefixIcon,
  6. IconData? suffixIcon,
  7. bool isDisabled = false,
  8. double width = 400,
  9. EdgeInsetsGeometry contentPadding = ButtonConstants.defaultContentPadding,
  10. double iconSize = ButtonConstants.defaultIconSize,
})

Implementation

const Button({
  Key? key,
  required this.label,
  required this.onPressed,
  required this.type,
  this.prefixIcon,
  this.suffixIcon,
  this.isDisabled = false,
  this.width = 400,
  this.contentPadding = ButtonConstants.defaultContentPadding,
  this.iconSize = ButtonConstants.defaultIconSize,
}) : super(key: key);