Annotation 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

Annotation({required RegExp regExp, required TextSpan spanBuilder({required String text, TextStyle? textStyle})})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
regExp RegExp
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spanBuilder TextSpan Function({required String text, TextStyle? textStyle})
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