FormatterUtils class

FormatterUtils is an utility class which is used to style the text in the message bubble and the conversation subtitle

Constructors

FormatterUtils()

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 and forConversation as a parameter text is a string which needs to be styled formatters is a list of CometChatTextFormatter which is used to style the text theme is a object of CometChatTheme which is used to style the text alignment is a object of BubbleAlignment which is used to style the text forConversation is a boolean which is used to style the text in the conversation subtitle