VoiceMessage constructor
VoiceMessage({
- Key? key,
- required bool me,
- String? audioSrc,
- Future<
File> ? audioFile, - double width = 200,
- Duration? duration,
- String formatDuration(
- Duration duration
- bool showDuration = false,
- List<
double> ? waveForm, - int noiseCount = 27,
- Color meBgColor = AppColors.pink,
- Color contactBgColor = const Color(0xffffffff),
- Color contactFgColor = AppColors.pink,
- Color waveBgColor = AppColors.pink,
- Color waveColor = AppColors.pink,
- Color contactCircleColor = Colors.red,
- Color mePlayIconColor = Colors.black,
- Color contactPlayIconColor = Colors.black26,
- double radius = 12,
- double noiseWidth = 100,
- double noiseHeight = 12,
- Color contactPlayIconBgColor = Colors.grey,
- Color meFgColor = const Color(0xffffffff),
- bool played = false,
- dynamic onPlay()?,
- 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);