TextStyle class

Properties that determine how the title and content are styled

Constructors

TextStyle({Input<String>? backgroundColor, Input<TextStyleFontSize>? fontSize, Input<TextStyleHorizontalAlignment>? horizontalAlignment, Input<TextStylePadding>? padding, Input<TextStylePointerLocation>? pointerLocation, Input<String>? textColor, Input<TextStyleVerticalAlignment>? verticalAlignment})
Creates a new TextStyle. backgroundColor The background color as a hex string. "#RRGGBB" or "#RGB" fontSize Font sizes for both the title and content. The title will still be larger relative to the content. horizontalAlignment The horizontal alignment of both the title and content padding The amount of padding around the widget pointerLocation The pointer location for this widget (also sometimes called a "tail") textColor The text color as a hex string. "#RRGGBB" or "#RGB" verticalAlignment The vertical alignment of both the title and content
const
TextStyle.fromMap(Map<String, dynamic> map)
factory

Properties

backgroundColor → Input<String>?
The background color as a hex string. "#RRGGBB" or "#RGB"
final
fontSize → Input<TextStyleFontSize>?
Font sizes for both the title and content. The title will still be larger relative to the content.
final
hashCode → int
The hash code for this object.
no setterinherited
horizontalAlignment → Input<TextStyleHorizontalAlignment>?
The horizontal alignment of both the title and content
final
padding → Input<TextStylePadding>?
The amount of padding around the widget
final
pointerLocation → Input<TextStylePointerLocation>?
The pointer location for this widget (also sometimes called a "tail")
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textColor → Input<String>?
The text color as a hex string. "#RRGGBB" or "#RGB"
final
verticalAlignment → Input<TextStyleVerticalAlignment>?
The vertical alignment of both the title and content
final

Methods

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

Operators

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