AdditionalConfigurations class
AdditionalConfigurations is a class that can be used to add additional configurations to the UI Kit
AdditionalConfigurations(
textFormatters: [
CometChatPhoneNumberFormatter(
pattern: RegExp(RegexConstants.phoneNumberRegexPattern),
onSearch: (phoneNumber) async {
await launchUrl(Uri.parse(('tel:$phoneNumber')));
},
messageBubbleTextStyle: (theme, alignment,{forConversation}) {
return TextStyle(
color: Colors.pink,
);
},
),
CometChatEmailFormatter(
pattern: RegExp(RegexConstants.emailRegexPattern),
onSearch: (email) async {
await launchUrl(Uri.parse(('mailto:$email')));
},
messageBubbleTextStyle: (theme, alignment,{forConversation}) {
return TextStyle(
color: Colors.red,
);
},
),
],
);
Constructors
-
AdditionalConfigurations.new({List<
CometChatTextFormatter> ? textFormatters})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
textFormatters
→ List<
CometChatTextFormatter> ? -
textFormatters is a list of CometChatTextFormatter that can be used to format text
final
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