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,
  13. StrutStyle? strutStyle,
  14. TextDirection? textDirection,
  15. Locale? locale,
  16. bool? softWrap = true,
  17. int? maxLines,
  18. TextScaler? textScaler,
  19. String? semanticsLabel,
  20. String? semanticsIdentifier,
  21. TextWidthBasis? textWidthBasis,
  22. TextHeightBehavior? textHeightBehavior,
  23. Color? selectionColor,
  24. GestureTapCallback? onDoubleTap,
  25. GestureLongPressCallback? onLongPress,
  26. GestureTapDownCallback? onTapDown,
  27. GestureTapUpCallback? onTapUp,
  28. GestureTapCancelCallback? onTapCancel,
  29. HitTestBehavior? behavior,
  30. bool excludeFromSemantics = false,
  31. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
})

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,
  this.strutStyle,
  this.textDirection,
  this.locale,
  this.softWrap = true,
  this.maxLines,
  this.textScaler,
  this.semanticsLabel,
  this.semanticsIdentifier,
  this.textWidthBasis,
  this.textHeightBehavior,
  this.selectionColor,
  this.onDoubleTap,
  this.onLongPress,
  this.onTapDown,
  this.onTapUp,
  this.onTapCancel,
  this.behavior,
  this.excludeFromSemantics = false,
  this.dragStartBehavior = DragStartBehavior.start,
});