ZetaVoiceMemo constructor

const ZetaVoiceMemo({
  1. Key? key,
  2. bool? rounded,
  3. String recordingLabel = 'Recording message...',
  4. String maxLimitLabel = 'Recording message {timer} seconds left...',
  5. String sendMessageLabel = 'Send message?',
  6. String playingLabel = 'Playing...',
  7. String recordingNotAllowedLabel = 'Recording not allowed.',
  8. VoidCallback? onDiscard,
  9. void onSend(
    1. Uint8List audioStream
    )?,
  10. bool canRecord = true,
  11. Duration maxRecordingDuration = const Duration(seconds: 120),
  12. Duration warningDuration = const Duration(seconds: 15),
  13. RecordConfig recordConfig = const RecordConfig(encoder: AudioEncoder.pcm16bits, sampleRate: 16000, numChannels: 1, bitRate: 64000),
  14. double loudnessMultiplier = 10,
})

Constructs a ZetaVoiceMemo.

Implementation

const ZetaVoiceMemo({
  super.key,
  super.rounded,
  this.recordingLabel = 'Recording message...',
  this.maxLimitLabel = 'Recording message {timer} seconds left...',
  this.sendMessageLabel = 'Send message?',
  this.playingLabel = 'Playing...',
  this.recordingNotAllowedLabel = 'Recording not allowed.',
  this.onDiscard,
  this.onSend,
  this.canRecord = true,
  this.maxRecordingDuration = const Duration(seconds: 120),
  this.warningDuration = const Duration(seconds: 15),
  this.recordConfig = const RecordConfig(
    encoder: AudioEncoder.pcm16bits,
    sampleRate: 16000,
    numChannels: 1,
    bitRate: 64000,
  ),
  this.loudnessMultiplier = 10,
});