VoiceRecordButton constructor

const VoiceRecordButton({
  1. Key? key,
  2. dynamic onResult(
    1. String
    )?,
  3. dynamic onPartialResult(
    1. String
    )?,
  4. dynamic onRecordingStateChanged(
    1. bool
    )?,
  5. dynamic onError(
    1. String
    )?,
  6. Color? themeColor,
  7. double size = 64,
  8. int maxDuration = 10,
  9. bool showDuration = true,
  10. bool showRipple = true,
  11. bool enableHaptic = true,
  12. IconData? icon,
  13. bool useGlobalService = true,
})

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,
});