VoiceNotePlayer constructor

const VoiceNotePlayer({
  1. Key? key,
  2. Duration duration = const Duration(seconds: 42),
  3. List<double> amplitudes = const [0.2, 0.4, 0.7, 0.9, 0.5, 0.8, 0.3, 0.6, 0.9, 0.4, 0.7, 0.3, 0.8, 0.5, 0.2, 0.6, 0.9, 0.4, 0.7, 0.5],
  4. Color? activeColor,
  5. Color? inactiveColor,
  6. ValueChanged<bool>? onPlayStateChanged,
  7. String? avatarUrl,
})

Implementation

const VoiceNotePlayer({
  super.key,
  this.duration = const Duration(seconds: 42),
  this.amplitudes = const [
    0.2,
    0.4,
    0.7,
    0.9,
    0.5,
    0.8,
    0.3,
    0.6,
    0.9,
    0.4,
    0.7,
    0.3,
    0.8,
    0.5,
    0.2,
    0.6,
    0.9,
    0.4,
    0.7,
    0.5,
  ],
  this.activeColor,
  this.inactiveColor,
  this.onPlayStateChanged,
  this.avatarUrl,
});