SeniorButton constructor

const SeniorButton({
  1. Key? key,
  2. bool disabled = false,
  3. required String label,
  4. required VoidCallback onPressed,
  5. bool busy = false,
  6. String? busyMessage,
  7. IconData? icon,
  8. bool outlined = false,
  9. bool danger = false,
  10. bool fullWidth = false,
  11. SeniorButtonStyle? style,
})

Creates a button with Senior Design System determinations for primary button. The label and onPressed parameters are required.

Implementation

const SeniorButton({
  Key? key,
  this.disabled = false,
  required this.label,
  required this.onPressed,
  this.busy = false,
  this.busyMessage,
  this.icon,
  this.outlined = false,
  this.danger = false,
  this.fullWidth = false,
  this.style,
}) : super(key: key);