NeuTextSpec class

Construct a new NeuTextSpec as a container object for baseStyle from which to copy TextStyle as well as Rect and TextDirection fields for painting a gradient atop the text instead of just a solid color in the context of Neu.textStyle (or more specifically as a field of a new Neu object for the deployment of the Neu.buildTextStyle instance method).

Cleans up fields of a new Neu object as these three properties contribute to only a single method choice.

Constructors

NeuTextSpec({TextStyle baseStyle = const TextStyle(), Rect? rect, TextDirection textDirection = TextDirection.ltr})
A container object for baseStyle from which to copy TextStyle as well as Rect and TextDirection fields for painting a gradient atop the text instead of just a solid color in the context of Neu.textStyle (or more specifically as a field of a new Neu object for the deployment of the Neu.buildTextStyle instance method).
const

Properties

baseStyle TextStyle
This base style is offered as a convenience. TextStyle.copyWith is used within Neu.textStyle beginning with this style and overriding its TextStyle.color, TextStyle.shadows and potentially TextStyle.foreground.
final
hashCode int
The hash code for this object.
no setterinherited
rect Rect?
A more elaborate Neumorphic TextStyle may render large text with plenty of room on the glyphs themselves to paint a Curvature-inspired LinearGradient. By default, this property is null and only a TextStyle.color is supplied--no foreground Paint is rendered.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textDirection TextDirection
Defaults to TextDirection.ltr. Relevant only if a rect is supplied to drive a Paint.shader-based LinearGradient and only then in contexts where text directionality is considered.
final

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