DeskButton constructor
const
DeskButton({
- Key? key,
- required String text,
- required VoidCallback? onPressed,
- bool loading = false,
- ShadButtonVariant variant = ShadButtonVariant.primary,
- ShadButtonSize size = ShadButtonSize.sm,
Implementation
const DeskButton({
super.key,
required this.text,
required this.onPressed,
this.loading = false,
this.variant = ShadButtonVariant.primary,
this.size = ShadButtonSize.sm,
});