ModernMessagePanelOptions constructor
ModernMessagePanelOptions({ - required List<Message> messages,
- required int messagesLength,
- required String type,
- required String username,
- SendMessageType onSendMessagePress = sendMessage,
- Color? backgroundColor,
- bool focusedInput = false,
- ShowAlert? showAlert,
- required EventType eventType,
- required String member,
- required String islevel,
- required bool startDirectMessage,
- Participant? directMessageDetails,
- required void updateStartDirectMessage(
- bool
),
- required void updateDirectMessageDetails(
- Participant?
),
- required List<CoHostResponsibility> coHostResponsibility,
- required String coHost,
- required String roomName,
- Socket? socket,
- required String chatSetting,
- required bool youAreCoHost,
- bool enableGlassmorphism = true,
- bool isDarkMode = true,
- 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,
});