VoiceOptions constructor
const
VoiceOptions({
- bool enabled = true,
- IconData? voiceIcon = Icons.mic,
- IconData? keyboardIcon = Icons.keyboard,
- Color? voiceIconColor,
- double? voiceIconSize = 24.0,
- String? tooltip = '',
- void onVoiceState(
- bool isVoice
- int maxFilesPerMessage = 5,
- int maxFileSize = 10 * 1024 * 1024,
- List<
String> ? allowedFileTypes, - Widget customUploadButtonBuilder()?,
- bool confirmBeforeSend = false,
- String? uploadButtonText,
Implementation
const VoiceOptions({
this.enabled = true,
this.voiceIcon = Icons.mic,
this.keyboardIcon = Icons.keyboard,
this.voiceIconColor,
this.voiceIconSize = 24.0,
this.tooltip = '',
this.onVoiceState,
this.maxFilesPerMessage = 5,
this.maxFileSize = 10 * 1024 * 1024, // 10MB default
this.allowedFileTypes,
this.customUploadButtonBuilder,
this.confirmBeforeSend = false,
this.uploadButtonText,
});