AppButton constructor

const AppButton({
  1. Key? key,
  2. required String label,
  3. FutureOr<void> onPressed()?,
  4. FutureOr<void> onError()?,
  5. AppButtonStyle style = AppButtonStyle.elevated,
  6. Widget? leadingIcon,
  7. Widget? trailingIcon,
  8. bool enabled = true,
  9. bool showLoadingIndicator = true,
})

Implementation

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