ZetaVoiceMemo constructor
- Key? key,
- bool? rounded,
- String recordingLabel = 'Recording message...',
- String maxLimitLabel = 'Recording message {timer} seconds left...',
- String sendMessageLabel = 'Send message?',
- String playingLabel = 'Playing...',
- String recordingNotAllowedLabel = 'Recording not allowed.',
- VoidCallback? onDiscard,
- void onSend(
- Uint8List audioStream
- bool canRecord = true,
- Duration maxRecordingDuration = const Duration(seconds: 120),
- Duration warningDuration = const Duration(seconds: 15),
- RecordConfig recordConfig = const RecordConfig(encoder: AudioEncoder.pcm16bits, sampleRate: 16000, numChannels: 1, bitRate: 64000),
- 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,
});