Text class

Text element supporting direct styling with dartStyle, style, className, or plain text.

Inheritance

Constructors

Text(Object? value, {String? className, Map<String, Object?> props = const {}, Map<String, Object?> style = const {}, DartStyle? dartStyle, String tag = 'span'})
Creates a text element from value with optional dartStyle and properties.

Properties

children → List<FlintNode>
Child nodes rendered inside the element.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
props → Map<String, Object?>
Element attributes, event handlers, classes, and styles.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tag → String
HTML tag name for this element.
finalinherited

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

Static Methods

code(Object? value, {String? className, Map<String, Object?> props = const {}, Map<String, Object?> style = const {}, DartStyle? dartStyle}) → FlintElement
Creates a code text element.
h1(Object? value, {String? className, Map<String, Object?> props = const {}, Map<String, Object?> style = const {}, DartStyle? dartStyle}) → FlintElement
Creates an h1 text element.
h2(Object? value, {String? className, Map<String, Object?> props = const {}, Map<String, Object?> style = const {}, DartStyle? dartStyle}) → FlintElement
Creates an h2 text element.
h3(Object? value, {String? className, Map<String, Object?> props = const {}, Map<String, Object?> style = const {}, DartStyle? dartStyle}) → FlintElement
Creates an h3 text element.
p(Object? value, {String? className, Map<String, Object?> props = const {}, Map<String, Object?> style = const {}, DartStyle? dartStyle}) → FlintElement
Creates a paragraph text element.
pre(Object? value, {String? className, Map<String, Object?> props = const {}, Map<String, Object?> style = const {}, DartStyle? dartStyle}) → FlintElement
Creates a pre text element.
small(Object? value, {String? className, Map<String, Object?> props = const {}, Map<String, Object?> style = const {}, DartStyle? dartStyle}) → FlintElement
Creates a small text element.
span(Object? value, {String? className, Map<String, Object?> props = const {}, Map<String, Object?> style = const {}, DartStyle? dartStyle}) → FlintElement
Creates an inline span text element.
strong(Object? value, {String? className, Map<String, Object?> props = const {}, Map<String, Object?> style = const {}, DartStyle? dartStyle}) → FlintElement
Creates a strong text element.