Text class
A widget that displays textual content.
Constructors
-
Text({Input<
String> ? content, Input<TextFormat> ? format, Input<TextStyle> ? style}) -
Creates a new Text.
contentThe text content to be displayed.formatHow the text content is formatted.styleHow the text is styledconst -
Text.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
content
→ Input<
String> ? -
The text content to be displayed.
final
-
format
→ Input<
TextFormat> ? -
How the text content is formatted.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
style
→ Input<
TextStyle> ? -
How the text is styled
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