VoiceMessage constructor

VoiceMessage({
  1. Key? key,
  2. String? audioSrc,
  3. Duration? duration,
  4. String formatDuration(
    1. Duration duration
    )?,
  5. bool showDuration = false,
  6. dynamic onPlay()?,
  7. Widget? statusAndTime,
  8. bool? isSender,
  9. required Color senderBgColor,
  10. required Color receiverBgColor,
})

Implementation

VoiceMessage({
  Key? key,
  this.audioSrc,
  this.duration,
  this.formatDuration,
  this.showDuration = false,
  this.onPlay,
  this.statusAndTime, this.isSender,
  required this.senderBgColor,
  required this.receiverBgColor,
}) : super(key: key);