MatchText class Null safety

A MatchText class which provides a structure for ParsedText to handle Pattern matching and also to provide custom Function and custom TextStyle.

Constructors

MatchText({ParsedType type = ParsedType.CUSTOM, String? pattern, dynamic style, void onTap(String)?, dynamic renderText({String? pattern, String? str})?, RegexOptions regexOptions = const RegexOptions()})
Creates a MatchText object

Properties

hashCode int
The hash code for this object.
read-onlyinherited
onTap ↔ (void Function?(String)?)
A custom Function to handle onTap.
read / write
pattern String?
If no type property is explicitly defined then this propery must be non null takes a regex string
read / write
regexOptions RegexOptions
final
renderText ↔ (dynamic Function?({String? pattern, String? str})?)
A callback function that takes two parameter String & pattern
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
style ↔ dynamic
Takes a custom style of TextStyle for the matched text widget
read / write
type ParsedType
Used to enforce Predefined regex to match from
read / write

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited