XText constructor

const XText(
  1. String text, {
  2. Key? key,
  3. Widget? icon,
  4. bool isExpand = false,
  5. TextStyle? style,
  6. CrossAxisAlignment? iconVerticalAlignment,
  7. bool? isUseUnderline = false,
  8. dynamic onTap()?,
  9. double? maxWidth,
  10. TextOverflow? overflow,
  11. TextAlign textAlign = .start,
  12. double? iconSpacer = 8,
})

Implementation

const XText(
  this.text, {
  super.key,
  this.icon,
  this.isExpand = false,
  this.style,
  this.iconVerticalAlignment,
  this.isUseUnderline = false,
  this.onTap,
  this.maxWidth,
  this.overflow,
  this.textAlign = .start,
  this.iconSpacer = 8,
});