VoiceWaveWidget constructor

const VoiceWaveWidget({
  1. Key? key,
  2. required String userId,
  3. double size = 50,
  4. Color color = Colors.greenAccent,
  5. int waveCount = 3,
  6. double sensitivity = 3,
  7. int noiseFloor = 1,
  8. double maxScale = 1.1,
  9. VoiceWaveMode mode = VoiceWaveMode.circle,
  10. int barCount = 5,
  11. double barGap = 3,
  12. double barRadius = 2,
  13. double barWidth = 0,
  14. double barMaxHeight = 0,
  15. VoiceBarAlignment barAlignment = VoiceBarAlignment.left,
  16. double barMinHeightRatio = 0.08,
})

Implementation

const VoiceWaveWidget({
  super.key,
  required this.userId,
  this.size = 50,
  this.color = Colors.greenAccent,
  this.waveCount = 3,
  this.sensitivity = 3,
  this.noiseFloor = 1,
  this.maxScale = 1.1,
  this.mode = VoiceWaveMode.circle,
  this.barCount = 5,
  this.barGap = 3,
  this.barRadius = 2,
  this.barWidth = 0,
  this.barMaxHeight = 0,
  this.barAlignment = VoiceBarAlignment.left,
  this.barMinHeightRatio = 0.08,
});