TextStyle class

Настройки внешнего вида текста.

Constructors

TextStyle({LogicalPixel fontSize = const LogicalPixel(8), Color color = const Color(), LogicalPixel strokeWidth = const LogicalPixel(0.3499999940395355), Color strokeColor = const Color(4294967295), TextHorizontalAlignment textHorizontalAlignment = TextHorizontalAlignment.auto, TextPlacement textPlacement = TextPlacement.bottomCenter, LogicalPixel textOffset = const LogicalPixel(0), String? fontName = null})
const

Properties

color Color
final
fontName String?
final
fontSize LogicalPixel
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeColor Color
final
strokeWidth LogicalPixel
final
textHorizontalAlignment TextHorizontalAlignment
final
textOffset LogicalPixel
final
textPlacement TextPlacement
final

Methods

copyWith({LogicalPixel? fontSize, Color? color, LogicalPixel? strokeWidth, Color? strokeColor, TextHorizontalAlignment? textHorizontalAlignment, TextPlacement? textPlacement, LogicalPixel? textOffset, Optional<String?>? fontName}) TextStyle
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.
override