EasyRichTextPattern class
Constructors
-
EasyRichTextPattern({required dynamic targetString, String stringBeforeTarget = '', String stringAfterTarget = '', bool matchWordBoundaries = true, bool matchLeftWordBoundary = true, bool matchRightWordBoundary = true, bool superScript = false, bool subScript = false, TextStyle? style, String? urlType, GestureRecognizer? recognizer, bool hasSpecialCharacters = false, dynamic matchOption = 'all', EasyRichTextMatchBuilder? matchBuilder, InlineSpan? prefixInlineSpan, InlineSpan? suffixInlineSpan})
-
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hasSpecialCharacters
→ bool
-
set true if the targetString contains specified characters []()^*+?.$-{}|!
final
-
matchBuilder
→ EasyRichTextMatchBuilder?
-
replace text by pattern
final
-
matchLeftWordBoundary
→ bool
-
Apply only left Word Boundary in RegExp. The default value is false.
It Will be set to false when matchWordBoundaries is true.
/when all values are set to true. matchLeftWordBoundary has higher priority than matchWordBoundaries and matchRightWordBoundary.
final
-
matchOption
→ dynamic
-
match first, last, or all
0, 1, 'last'
default match all
final
-
matchRightWordBoundary
→ bool
-
Apply only left Word Boundary in RegExp. The default value is false.
It Will be set to false when matchWordBoundaries or matchLeftWordBoundary is true.
/when all values are set to true. matchRightWordBoundary have higher priority than matchWordBoundaries but lower priority than matchLeftWordBoundary.
final
-
matchWordBoundaries
→ bool
-
when all values are set to true. matchLeftWordBoundary and matchRightWordBoundary has higher priority than matchWordBoundaries.
final
-
prefixInlineSpan
→ InlineSpan?
-
InlineSpan widget before targetStriing
final
-
recognizer
→ GestureRecognizer?
-
GestureRecognizer
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
stringAfterTarget
→ String
-
string after target string.
useful when you want to format text before specified words
final
-
stringBeforeTarget
→ String
-
string before target string.
useful when you want to format text after specified words
final
-
style
→ TextStyle?
-
Style of target text
final
-
subScript
→ bool
-
convert targetString to subscript
final
-
suffixInlineSpan
→ InlineSpan?
-
InlineSpan widget after targetStriing
final
-
superScript
→ bool
-
convert targetString to superScript
superscript has higher priority than subscript
final
-
targetString
→ dynamic
-
target string that you want to format
final
-
urlType
→ String?
-
apply url_launcher, support email, website, and telephone
final
Methods
-
copyWith({dynamic targetString, dynamic stringBeforeTarget, dynamic stringAfterTarget, dynamic matchWordBoundaries, dynamic matchLeftWordBoundary, dynamic matchRightWordBoundary, dynamic superScript, dynamic subScript, dynamic style, dynamic urlType, dynamic recognizer, dynamic hasSpecialCharacters, dynamic matchOption, dynamic matchBuilder, dynamic prefixInlineSpan, dynamic suffixInlineSpan})
→ EasyRichTextPattern
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited