BsButton constructor

const BsButton({
  1. Key? key,
  2. required String label,
  3. VoidCallback? onPressed,
  4. BsButtonVariant variant = .primary,
  5. BsButtonSize size = .md,
  6. bool isLoading = false,
  7. IconData? icon,
  8. BsVariant? iconVariant,
  9. Color? iconColor,
  10. bool fullWidth = false,
  11. BorderRadius? customBorderRadius,
  12. Widget? badge,
  13. BsBadgePosition badgePosition = .trailing,
  14. Color? color,
  15. bool outline = false,
})

Creates a BsButton widget.

Implementation

const BsButton({
  super.key,
  required this.label,
  this.onPressed,
  this.variant = .primary,
  this.size = .md,
  this.isLoading = false,
  this.icon,
  this.iconVariant,
  this.iconColor,
  this.fullWidth = false,
  this.customBorderRadius,
  this.badge,
  this.badgePosition = .trailing,
  this.color,
  this.outline = false,
});