Button constructor
Button({
- required String text,
- required VoidCallback onPressed,
- ButtonType type = ButtonType.primary,
- double width = double.infinity,
- double height = 40,
- double? elevation,
- double borderRadius = 4,
- VoidCallback? onLongPress,
- IconData? icon,
- bool isLoading = false,
Implementation
Button({
required this.text,
required this.onPressed,
this.type = ButtonType.primary,
this.width = double.infinity,
this.height = 40,
this.elevation,
this.borderRadius = 4,
this.onLongPress,
this.icon,
this.isLoading = false,
});