Button constructor
const
Button({
- Key? key,
- required String label,
- required VoidCallback onPressed,
- required ButtonType type,
- IconData? prefixIcon,
- IconData? suffixIcon,
- bool isDisabled = false,
- double width = 400,
- EdgeInsetsGeometry contentPadding = ButtonConstants.defaultContentPadding,
- 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);