TextObj class

Model for each text in whole word

Constructors

TextObj({required TextType type, required String text})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
Check text is hypertext to allow clickable or not
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
final
textContent String
For convert these types TextType.facebook,TextType.instagram and TextType.twitter to there urls in the view mode.
no setter
type TextType
final
username String
Get username only from text in facebook , instagram and twitter Input => "fb: @mohamed_ali" , Output => mohamed_ali to use it in textContent above with url
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onClick(Function onClick) → void
Callback void for each text to do action when user click in
textStyle(TextStyle style) TextStyle
Every text type has own style
toString() String
A string representation of this object.
inherited

Operators

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