FormatterUtils class
FormatterUtils is an utility class which is used to style the text in the message bubble and the conversation subtitle
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
buildTextSpan(
String text, List< CometChatTextFormatter> ? formatters, CometChatTheme? theme, BubbleAlignment? alignment, {bool forConversation = false}) → List<TextSpan> -
buildTextSpan is a method which is used to style the text in the message bubble and the conversation subtitle
It takes
text
,formatters
,theme
,alignment
andforConversation
as a parametertext
is a string which needs to be styledformatters
is a list of CometChatTextFormatter which is used to style the texttheme
is a object of CometChatTheme which is used to style the textalignment
is a object of BubbleAlignment which is used to style the textforConversation
is a boolean which is used to style the text in the conversation subtitle