AtomButton constructor

const AtomButton({
  1. Key? key,
  2. required String label,
  3. VoidCallback? onPressed,
  4. Color? color,
  5. double borderRadius = 16,
  6. double elevation = 2,
  7. TextStyle? textStyle,
  8. Color? textColor,
  9. EdgeInsetsGeometry? padding,
  10. AtomButtonType type = AtomButtonType.primary,
})

Implementation

const AtomButton({
  super.key,
  required this.label,
  this.onPressed,
  this.color,
  this.borderRadius = 16,
  this.elevation = 2,
  this.textStyle,
  this.textColor,
  this.padding,
  this.type = AtomButtonType.primary,
});