SILSecondaryButton constructor

const SILSecondaryButton({
  1. Key? buttonKey,
  2. required Function? onPressed,
  3. String? text,
  4. Color? buttonColor,
  5. Color? textColor,
  6. Widget? customChild,
  7. double? customRadius,
  8. EdgeInsets? customPadding,
  9. Color? borderColor,
  10. bool? addBorder = false,
  11. Function? onLongPress,
  12. double? customElevation,
})

Implementation

const SILSecondaryButton({
  this.buttonKey,
  required this.onPressed,
  this.text,
  this.buttonColor,
  this.textColor,
  this.customChild,
  this.customRadius,
  this.customPadding,
  this.borderColor,
  this.addBorder = false,
  this.onLongPress,
  this.customElevation,
}) : assert(onPressed != null, text != null || customChild != null);