JButton constructor

const JButton({
  1. Key? key,
  2. required void onPressed(),
  3. String? text,
  4. IconData? icon,
  5. Color? backgroundColor,
  6. Color? foregroundColor,
  7. double? radius,
  8. Color? shadowColor,
  9. Color? borderColor,
  10. double? borderWidth,
  11. bool expanded = true,
  12. bool padding = true,
  13. double? sizeIcon,
})

Implementation

const JButton({
  super.key,
  required this.onPressed,
  this.text,
  this.icon,
  this.backgroundColor,
  this.foregroundColor,
  this.radius,
  this.shadowColor,
  this.borderColor,
  this.borderWidth,
  this.expanded = true,
  this.padding = true,
  this.sizeIcon,
});