CometChatEmailFormatter class
CometChatEmailFormatter is a class which is used to style the email text
CometChatEmailFormatter(
pattern: RegExp(RegexConstants.emailRegexPattern),
onSearch: (email) async {
await launchUrl(Uri.parse(('mailto:$email')));
},
messageBubbleTextStyle: (theme, alignment,{forConversation}) {
return TextStyle(
color: Colors.pink,
);
},
);
- Inheritance
-
- Object
- CometChatTextFormatter
- CometChatEmailFormatter
Constructors
-
CometChatEmailFormatter.new({String? trackingCharacter, RegExp? pattern, bool? showLoadingIndicator, dynamic onSearch(String?)?, TextStyle messageBubbleTextStyle(CometChatTheme theme, BubbleAlignment? alignment, {bool forConversation})?, TextStyle messageInputTextStyle(CometChatTheme theme)?, CometChatTheme? theme, BaseMessage? message, Map<
String, dynamic> ? composerId, StreamSink<List< ? suggestionListEventSink, StreamSink<SuggestionListItem> >String> ? previousTextEventSink, User? user, Group? group})
Properties
-
composerId
↔ Map<
String, dynamic> ? -
composerId is a Map which is used to store the composer id
getter/setter pairinherited
- group ↔ Group?
-
set group for the formatter
getter/setter pairinherited
- groupMembersRequestBuilder ↔ GroupMembersRequestBuilder?
-
groupMembersRequestBuilder is a GroupMembersRequestBuilder object which is used to get the group members
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message ↔ BaseMessage?
-
message is a BaseMessage which is used to store the message
getter/setter pairinherited
- messageBubbleTextStyle ↔ TextStyle Function(CometChatTheme theme, BubbleAlignment? alignment, {bool forConversation})?
-
messageBubbleTextStyle is a function which is used to style the message bubble text with formatting
getter/setter pairinherited
- messageInputTextStyle ↔ TextStyle Function(CometChatTheme theme)?
-
messageBubbleTextStyle is a function which is used to style the message composer input text with formatting
getter/setter pairinherited
- onSearch ↔ dynamic Function(String?)?
-
onSearch is a function which is used to perform some action when the text is searched
getter/setter pairinherited
- pattern ↔ RegExp?
-
pattern is a regular expression which is used to match the pattern
getter/setter pairinherited
-
previousTextEventSink
↔ StreamSink<
String> ? -
previousTextEventSink is a StreamSink which is used to store the previous text event sink
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLoadingIndicator ↔ bool?
-
showLoadingIndicator is a boolean value which is used to show or hide the loading indicator
getter/setter pairinherited
-
suggestionListEventSink
↔ StreamSink<
List< ?SuggestionListItem> > -
suggestionListEventSink is a StreamSink which is used to store the suggestion list event sink
getter/setter pairinherited
- theme ↔ CometChatTheme?
-
theme is a CometChatTheme which is used to store the theme
getter/setter pairinherited
- trackingCharacter ↔ String?
-
trackingCharacter is a string value which is used to track the character
getter/setter pairinherited
- user ↔ User?
-
sets user for the formatter
getter/setter pairinherited
- usersRequestBuilder ↔ UsersRequestBuilder?
-
usersRequestBuilder is a UsersRequestBuilder object which is used to get the users
getter/setter pairinherited
Methods
-
buildInputFieldText(
{required BuildContext context, TextStyle? style, required bool withComposing, required String text, List< AttributedText> ? existingAttributes, CometChatTheme? theme}) → List<AttributedText> -
buildInputFieldText is a function which is used to style the text in the input field in the message composer
inherited
-
getAttributedText(
String text, CometChatTheme theme, BubbleAlignment? alignment, {List< AttributedText> ? existingAttributes, dynamic onTap(String)?, bool forConversation = false}) → List<AttributedText> -
getAttributedText is a function which is used to get the attributed text which is used to style the text in the message bubble and conversation subtitle
override
-
getLoadingIndicator(
BuildContext context, CometChatTheme theme) → Widget -
getLoadingIndicator is a widget which is used to show the loading indicator
inherited
-
getMessageBubbleTextStyle(
CometChatTheme theme, BubbleAlignment? alignment, {bool forConversation = false}) → TextStyle -
getMessageBubbleTextStyle is a TextStyle object which is used to style the message bubble text
override
-
getMessageInputTextStyle(
CometChatTheme theme) → TextStyle -
getMessageInputTextStyle is a TextStyle object which is used to style the message input text
override
-
handlePreMessageSend(
BuildContext context, BaseMessage baseMessage) → void -
handlePreMessageSend is a function which is used to perform some action before sending the message
override
-
init(
) → void -
override
-
mergeAttributedText(
List< AttributedText> attributedTexts, List<AttributedText> existingAttributedTexts) → List<AttributedText> -
mergeAttributedText is a function which is used to merge the attributed text of various formatters
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onChange(
TextEditingController textEditingController, String previousText) → void -
onChange is a function which is used to perform some action when the text is changed
override
-
onScrollToBottom(
TextEditingController textEditingController) → void -
onScrollToBottom is a function which is used to perform some action when the scroll reaches the bottom of the suggestion list
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited