TextInputStyle class final

Text styling information for the current input client.

See also:

Mixed-in types
Annotations

Constructors

TextInputStyle({String? fontFamily, double? fontSize, FontWeight? fontWeight, required TextDirection textDirection, required TextAlign textAlign, double? letterSpacing, double? wordSpacing, double? lineHeight})
Creates text styling information for the current input client.
const

Properties

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
fontWeight FontWeight?
The typeface thickness to use when painting the text (e.g., bold).
final
hashCode int
The hash code for this object.
no setteroverride
letterSpacing double?
The amount of space (in logical pixels) to add between each letter.
final
lineHeight double?
The line height in logical pixels.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textAlign TextAlign
How the text should be aligned horizontally.
final
textDirection TextDirection
The directionality of the text.
final
wordSpacing double?
The amount of space (in logical pixels) to add at each sequence of white-space (i.e. between each word).
final

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toJson() Map<String, dynamic>
Returns a representation of this object as a JSON object.
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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