KaytaButton constructor

KaytaButton(
  1. String text, {
  2. required dynamic onTap()?,
  3. String? image,
  4. double? height = 45,
  5. Color? color,
  6. double? width,
  7. double? iconSize = 24,
  8. dynamic onLongPress()?,
  9. dynamic onDoubleTap()?,
  10. BorderRadius? borderRadius,
  11. bool? disabled = false,
  12. bool? outline = false,
  13. bool? invertColors = false,
  14. bool? isLoading = false,
  15. Color? textColor,
  16. TextStyle? textStyle,
  17. double? outlineWidth = 2,
})

Implementation

KaytaButton(
  this.text, {
  required this.onTap,
  this.image,
  this.height = 45,
  this.color,
  this.width,
  this.iconSize = 24,
  this.onLongPress,
  this.onDoubleTap,
  this.borderRadius,
  this.disabled = false,
  this.outline = false,
  this.invertColors = false,
  this.isLoading = false,
  this.textColor,
  this.textStyle,
  this.outlineWidth = 2,
});