ZwapGradientTextSpan class

Gradient test spans supports only the onTap gesture

Inheritance

Constructors

ZwapGradientTextSpan({required Pattern text, required List<Color> colors, TextStyle? textStyle, List<ZwapTextSpan> children = const [], Uri? linkToUri, TapGestureRecognizer? gestureRecognizer, ZwapLinkTarget linkTarget = ZwapLinkTarget.defaultTarget, Alignment? begin, Alignment? end, List<double>? stops, double? forcedHeight, Offset? forcedTranslation})
ZwapGradientTextSpan.fromGradient({required Pattern text, required LinearGradient gradient, required TextStyle textStyle, List<ZwapTextSpan> children = const [], Uri? linkToUri, TapGestureRecognizer? gestureRecognizer, double? forcedHeight, ZwapLinkTarget linkTarget = ZwapLinkTarget.defaultTarget, Offset? forcedTranslation})
ZwapGradientTextSpan.fromZwapTypography({required Pattern text, required List<Color> colors, ZwapTextType? textType, Uri? linkToUri, List<ZwapTextSpan> children = const [], TapGestureRecognizer? gestureRecognizer, ZwapLinkTarget linkTarget = ZwapLinkTarget.defaultTarget, Alignment? begin, Alignment? end, List<double>? stops, double? forcedHeight, Offset? forcedTranslation})

Properties

begin Alignment?
final
children List<ZwapTextSpan>
getter/setter pairinherited
colors List<Color>
final
cursor MouseCursor?
finalinherited
end Alignment?
final
forcedHeight double?
final
forcedTranslation Offset?
final
gestureRecognizer TapGestureRecognizer?
FEATURE (Marchetti): Add the co-existency of gesture recognizer and link widger ! if one of the text spans has links this will be ignored
finalinherited
hashCode int
The hash code for this object.
no setterinherited
linkTarget ZwapLinkTarget
Used only if linkToUri != null
finalinherited
linkToUri Uri?
if != null link widget will be added on this textspan only
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stops List<double>?
final
text Pattern
Attention: if you use a ZwapTranslation with useLongPress = true the onSecondayTap is used instead of onLongPress
finalinherited
textStyle TextStyle?
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited