SFMainButton constructor

const SFMainButton({
  1. required String label,
  2. VoidCallback? onPressed,
  3. ComponentSize size = ComponentSize.md,
  4. Color? color,
  5. bool disabled = false,
  6. FocusNode? focusNode,
  7. String? semanticsLabel,
  8. Key? key,
})

Implementation

const SFMainButton({
  required this.label,
  this.onPressed,
  this.size = ComponentSize.md,
  this.color,
  this.disabled = false,
  this.focusNode,
  this.semanticsLabel,
  super.key,
});