ModernMessagePanelOptions constructor

ModernMessagePanelOptions({
  1. required List<Message> messages,
  2. required int messagesLength,
  3. required String type,
  4. required String username,
  5. SendMessageType onSendMessagePress = sendMessage,
  6. Color? backgroundColor,
  7. bool focusedInput = false,
  8. ShowAlert? showAlert,
  9. required EventType eventType,
  10. required String member,
  11. required String islevel,
  12. required bool startDirectMessage,
  13. Participant? directMessageDetails,
  14. required void updateStartDirectMessage(
    1. bool
    ),
  15. required void updateDirectMessageDetails(
    1. Participant?
    ),
  16. required List<CoHostResponsibility> coHostResponsibility,
  17. required String coHost,
  18. required String roomName,
  19. Socket? socket,
  20. required String chatSetting,
  21. required bool youAreCoHost,
  22. bool enableGlassmorphism = true,
  23. bool isDarkMode = true,
  24. double borderRadius = 16.0,
})

Implementation

ModernMessagePanelOptions({
  required this.messages,
  required this.messagesLength,
  required this.type,
  required this.username,
  this.onSendMessagePress = sendMessage,
  this.backgroundColor,
  this.focusedInput = false,
  this.showAlert,
  required this.eventType,
  required this.member,
  required this.islevel,
  required this.startDirectMessage,
  this.directMessageDetails,
  required this.updateStartDirectMessage,
  required this.updateDirectMessageDetails,
  required this.coHostResponsibility,
  required this.coHost,
  required this.roomName,
  this.socket,
  required this.chatSetting,
  required this.youAreCoHost,
  // Modern defaults
  this.enableGlassmorphism = true,
  this.isDarkMode = true,
  this.borderRadius = 16.0,
});