VoiceMessage constructor

VoiceMessage({
  1. Key? key,
  2. required bool me,
  3. String? audioSrc,
  4. Future<File>? audioFile,
  5. double width = 200,
  6. Duration? duration,
  7. String formatDuration(
    1. Duration duration
    )?,
  8. bool showDuration = false,
  9. List<double>? waveForm,
  10. int noiseCount = 27,
  11. Color meBgColor = AppColors.pink,
  12. Color contactBgColor = const Color(0xffffffff),
  13. Color contactFgColor = AppColors.pink,
  14. Color waveBgColor = AppColors.pink,
  15. Color waveColor = AppColors.pink,
  16. Color contactCircleColor = Colors.red,
  17. Color mePlayIconColor = Colors.black,
  18. Color contactPlayIconColor = Colors.black26,
  19. double radius = 12,
  20. double noiseWidth = 100,
  21. double noiseHeight = 12,
  22. Color contactPlayIconBgColor = Colors.grey,
  23. Color meFgColor = const Color(0xffffffff),
  24. bool played = false,
  25. dynamic onPlay()?,
  26. required Map<String, String> header,
})

Implementation

VoiceMessage({
  Key? key,
  required this.me,
  this.audioSrc,
  this.audioFile,
  this.width = 200,
  this.duration,
  this.formatDuration,
  this.showDuration = false,
  this.waveForm,
  this.noiseCount = 27,
  this.meBgColor = AppColors.pink,
  this.contactBgColor = const Color(0xffffffff),
  this.contactFgColor = AppColors.pink,
  this.waveBgColor = AppColors.pink,
  this.waveColor = AppColors.pink,
  this.contactCircleColor = Colors.red,
  this.mePlayIconColor = Colors.black,
  this.contactPlayIconColor = Colors.black26,
  this.radius = 12,
  this.noiseWidth = 100,
  this.noiseHeight = 12,
  this.contactPlayIconBgColor = Colors.grey,
  this.meFgColor = const Color(0xffffffff),
  this.played = false,
  this.onPlay,
  required this.header,
}) : super(key: key);