MessageTranslationConfiguration class
MessageTranslationConfiguration is a data class that has configuration properties to customize the functionality and appearance of MessageTranslationExtension
MessageTranslationConfiguration translationConfig = MessageTranslationConfiguration(
optionTitle: 'Translate',
optionIconUrl: 'https://example.com/translate-icon.png',
style: MessageTranslationBubbleStyle(
infoTextStyle: TextStyle(
color: Colors.black,
fontSize: 14,
),
),
optionStyle: MessageTranslationOptionStyle(
titleStyle: TextStyle(
color: Colors.black,
fontSize: 16,
),
iconTint: Colors.blue,
),
theme: CometChatTheme(palette: Palette(),typography: Typography()),
);
Constructors
- MessageTranslationConfiguration({String? optionTitle, String? optionIconUrl, String? optionIconUrlPackageName, MessageTranslationOptionStyle? optionStyle, MessageTranslationBubbleStyle? style, CometChatTheme? theme})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- optionIconUrl → String?
-
optionIconUrl is the path to the icon image for the option for this extension
final
- optionIconUrlPackageName → String?
-
optionIconUrlPackageName is the name of the package where the icon for the option for this extension is located
final
- optionStyle → MessageTranslationOptionStyle?
-
optionStyle provides style to the option
final
- optionTitle → String?
-
optionTitle is the name for the option for this extension
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → MessageTranslationBubbleStyle?
-
style provides style
final
- theme → CometChatTheme?
-
theme sets custom theme
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