FitAnnotation class

Defines a customizable pattern within text, such as hashtags, URLs, or mentions.

Enables applying custom styles and interactions to matched patterns, enhancing text interactivity. Utilize this class to highlight specific text segments or to add clickable functionality, facilitating navigation or other actions.

Annotations

Constructors

FitAnnotation.new({required RegExp regExp, required TextSpan spanBuilder({required String text, required TextStyle textStyle})})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
regExp RegExp
Regular expression pattern to match text
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spanBuilder TextSpan Function({required String text, required TextStyle textStyle})
Builder function that creates a TextSpan for matched text
final

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