VoiceRecordButton constructor
const
VoiceRecordButton({
- Key? key,
- dynamic onResult()?,
- dynamic onPartialResult()?,
- dynamic onRecordingStateChanged()?,
- dynamic onError()?,
- Color? themeColor,
- double size = 64,
- int maxDuration = 10,
- bool showDuration = true,
- bool showRipple = true,
- bool enableHaptic = true,
- IconData? icon,
- bool useGlobalService = true,
- VoiceVisualStyle visualStyle = VoiceVisualStyle.wechat,
Implementation
const VoiceRecordButton({
super.key,
this.onResult,
this.onPartialResult,
this.onRecordingStateChanged,
this.onError,
this.themeColor,
this.size = 64,
this.maxDuration = 10,
this.showDuration = true,
this.showRipple = true,
this.enableHaptic = true,
this.icon,
this.useGlobalService = true,
this.visualStyle = VoiceVisualStyle.wechat,
});