FunctionInteractiveTextDetector class

Adapts arbitrary synchronous matching logic into a detector.

Inheritance

Constructors

FunctionInteractiveTextDetector({required InteractiveTextType type, required String id, required InteractiveTextDetectionFinder finder, int priority = 0})
Creates a detector backed by finder.
const

Properties

finder → InteractiveTextDetectionFinder
Matching callback invoked for each parsed source value.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable identifier recorded on every resolved match.
final
priority → int
Conflict priority; larger values win overlapping source ranges.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → InteractiveTextType
Semantic category produced by this detector.
final

Methods

detect(String text) → Iterable<InteractiveTextMatch>
Converts valid detections into complete source matches.
inherited
findMatches(String text) → Iterable<InteractiveTextDetection>
Finds candidate ranges and optional metadata in text.
override
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