DeskButton constructor

const DeskButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback? onPressed,
  4. bool loading = false,
  5. ShadButtonVariant variant = ShadButtonVariant.primary,
  6. 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,
});