NeomageButton constructor

const NeomageButton({
  1. Key? key,
  2. required String label,
  3. VoidCallback? onPressed,
  4. NeomageButtonVariant variant = NeomageButtonVariant.primary,
  5. IconData? icon,
  6. bool isLoading = false,
  7. bool compact = false,
})

Implementation

const NeomageButton({
  super.key,
  required this.label,
  this.onPressed,
  this.variant = NeomageButtonVariant.primary,
  this.icon,
  this.isLoading = false,
  this.compact = false,
});