MatchText class
Class for handling pattern matching and text styling in SmartActionsText widget
Provides structure for pattern matching, styling, and interaction handling
Constructors
-
MatchText.new({ParsedType type = ParsedType.custom, String? pattern, TextStyle? style, dynamic onTap(String)?, Map<
String, String> renderText({required String pattern, required String str})?, Widget renderWidget({required String pattern, required String text})?, TextInteractions? interactions}) - Creates a MatchText instance
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- interactions → TextInteractions?
-
Configuration for text interactions (copy, share, social)
final
- onTap → dynamic Function(String)?
-
Callback function triggered when matched text is tapped
final
- pattern → String?
-
Custom regex pattern string for matching
Required if type is ParsedType.custom
final
-
renderText
→ Map<
String, String> Function({required String pattern, required String str})? -
Function to customize how matched text is rendered
final
- renderWidget → Widget Function({required String pattern, required String text})?
-
Function to render a custom widget for matched text
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TextStyle?
-
Custom TextStyle to apply to matched text
final
- type → ParsedType
-
The type of pattern to match (email, phone, url, etc.)
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