FlintTextSpan class

Represents a single inline text segment within FlintRichText.

A span can have its own text style and optional link action (onTap).

Constructors

FlintTextSpan(String text, {TextStyle? style, String? onTap})
Creates a styled span of text with optional link handling.

Properties

hashCode int
The hash code for this object.
no setterinherited
onTap String?
Optional link or callback target. If set, the span renders as an <a> tag.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle?
The text style applied to this span (color, weight, decoration, etc.).
final
text String
The raw text content for this span.
final

Methods

copyWith({String? text, TextStyle? style, String? onTap}) FlintTextSpan
Creates a copy of this FlintTextSpan with optional property overrides.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHtml() String
Converts the span to HTML. If onTap is set, wraps text in an <a> tag.
toJson() Map<String, dynamic>
Converts the span and its properties into a serializable JSON map.
toString() String
A string representation of this object.
inherited
toText() String
Converts the span to plain text format.

Operators

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