TextProps class

Constructors

TextProps.new({bool inherit = true, Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, Color? backgroundColor, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? fontFamily, TextOverflow? overflow})

Properties

background Paint?
The paint drawn as a background for the text.
final
backgroundColor Color?
The color to use as the background for the text.
final
color Color?
The color to use when painting the text.
final
decoration TextDecoration?
The decorations to paint near the text (e.g., an underline).
final
decorationColor Color?
The color in which to paint the text decorations.
final
decorationStyle TextDecorationStyle?
The style in which to paint the text decorations (e.g., dashed).
final
decorationThickness double?
The thickness of the decoration stroke as a multiplier of the thickness defined by the font.
final
fontFamily String?
The name of the font to use when painting the text (e.g., Roboto).
final
fontSize double?
The size of fonts (in logical pixels) to use when painting the text.
final
fontStyle FontStyle?
The typeface variant to use when drawing the letters (e.g., italics).
final
fontWeight FontWeight?
The typeface thickness to use when painting the text (e.g., bold).
final
foreground Paint?
The paint drawn as a foreground for the text.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
The height of this text span, as a multiple of the font size.
final
inherit bool
Whether null values in this TextStyle can be replaced with their value in another TextStyle using merge.
final
letterSpacing double?
The amount of space (in logical pixels) to add between each letter. A negative value can be used to bring the letters closer.
final
locale Locale?
The locale used to select region-specific glyphs.
final
overflow TextOverflow?
How visual text overflow should be handled.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textBaseline TextBaseline?
The common baseline that should be aligned between this text span and its parent text span, or, for the root text spans, with the line box.
final
wordSpacing double?
The amount of space (in logical pixels) to add at each sequence of white-space (i.e. between each word). A negative value can be used to bring the words closer.
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