TextRun class final

A styled range of a text's characters, [start, end).

Annotations
  • @immutable

Constructors

TextRun(int start, int end, TextStyle style, {String? link})
const

Properties

end → int
final
hashCode → int
The hash code for this object.
no setteroverride
A URL the run opens when tapped.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → int
final
style → TextStyle
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Object? json) → TextRun?