VoiceOptions constructor

const VoiceOptions({
  1. bool enabled = true,
  2. IconData? voiceIcon = Icons.mic,
  3. IconData? keyboardIcon = Icons.keyboard,
  4. Color? voiceIconColor,
  5. double? voiceIconSize = 24.0,
  6. String? tooltip = '',
  7. void onVoiceState(
    1. bool isVoice
    )?,
  8. int maxFilesPerMessage = 5,
  9. int maxFileSize = 10 * 1024 * 1024,
  10. List<String>? allowedFileTypes,
  11. Widget customUploadButtonBuilder(
    1. BuildContext,
    2. VoidCallback
    )?,
  12. bool confirmBeforeSend = false,
  13. 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,
});