CometChatMessageOption constructor

CometChatMessageOption({
  1. required String id,
  2. required String title,
  3. String? icon,
  4. dynamic onClick(
    1. BaseMessage message,
    2. CometChatMessageListControllerProtocol state
    )?,
  5. String? packageName,
  6. Color? iconTint,
  7. TextStyle? titleStyle,
})

CometChatMessageOption constructor requires id and title while initializing.

Implementation

CometChatMessageOption(
    {required this.id,
    required this.title,
    this.icon,
    this.onClick,
    this.packageName,
    this.iconTint,
    this.titleStyle});