XText constructor
const
XText(
- String text, {
- Key? key,
- Widget? icon,
- bool isExpand = false,
- TextStyle? style,
- CrossAxisAlignment? iconVerticalAlignment,
- bool? isUseUnderline = false,
- dynamic onTap()?,
- double? maxWidth,
- TextOverflow? overflow,
- TextAlign textAlign = .start,
- double? iconSpacer = 8,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap = true,
- int? maxLines,
- TextScaler? textScaler,
- String? semanticsLabel,
- String? semanticsIdentifier,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- Color? selectionColor,
- GestureTapCallback? onDoubleTap,
- GestureLongPressCallback? onLongPress,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCancelCallback? onTapCancel,
- HitTestBehavior? behavior,
- bool excludeFromSemantics = false,
- 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,
});