VMessageConfig class

vRoom: The chat room for which the messages are displayed. This parameter is required. isCallsAllowed: A boolean value that indicates whether calls are allowed in the chat room. The default value is true. currentTheme: set current theme for the v chat message page you can check the dark mode and pass the correct theme you can pass VLightMessageTheme OR VDarkMessageTheme onUserBlockAnother: A callback function that is called when a user blocks another user. This parameter is optional. onMessageAttachmentIconPress: A callback function that is called when the user clicks on the attachment icon in the message input box. This parameter is optional and returns a future AttachEnumRes instance. onUserUnBlockAnother: A callback function that is called when a user unblocks another user. This parameter is optional. googleMapsApiKey: A string value that represents the Google Maps API key. This parameter is optional. maxMediaSize: An integer value that represents the maximum size of the media files that can be uploaded. The default value is 50 MB. compressImageQuality: An integer value that represents the quality of the compressed image. The default value is 55. maxRecordTime: A Duration instance that represents the maximum duration of the recorded audio. The default value is 30 minutes.

Constructors

VMessageConfig({bool isCallsAllowed = true, Future<VAttachEnumRes?> onMessageAttachmentIconPress()?, UserActionType? onUserUnBlockAnother, bool showDisconnectedWidget = true, String? googleMapsApiKey, dynamic onMessageLongPress(VBaseMessage baseMessage)?, UserActionType? onUserBlockAnother, int maxMediaSize = 1024 * 1024 * 50, int compressImageQuality = 55, Duration maxRecordTime = const Duration(minutes: 30)})
const

Properties

compressImageQuality int
final
googleMapsApiKey String?
set api if you want to make users able to pick locations
final
hashCode int
The hash code for this object.
no setterinherited
isCallsAllowed bool
final
maxMediaSize int
set max upload files size default it 50 mb
final
maxRecordTime Duration
set max record time
final
onMessageAttachmentIconPress → (Future<VAttachEnumRes?> Function()?)
callback when user clicked send attachment (this current show bottom sheet with media etc ...)
final
onMessageLongPress → (dynamic Function(VBaseMessage baseMessage)?)
final
onUserBlockAnother → UserActionType?
final
onUserUnBlockAnother → UserActionType?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDisconnectedWidget bool
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