AppButton constructor

const AppButton({
  1. Key? key,
  2. required String label,
  3. VoidCallback? onPressed,
  4. AppButtonStyle style = AppButtonStyle.elevated,
  5. Widget? leadingIcon,
  6. Widget? trailingIcon,
  7. bool enabled = true,
})

Implementation

const AppButton({
  super.key,
  required this.label,
  this.onPressed,
  this.style = AppButtonStyle.elevated,
  this.leadingIcon,
  this.trailingIcon,
  this.enabled = true,
});