VoiceMessage class

This is the main widget.

Inheritance

Constructors

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})

Properties

audioFile Future<File>?
getter/setter pair
audioSrc String?
final
contactBgColor Color
final
contactCircleColor Color
final
contactFgColor Color
final
contactPlayIconBgColor Color
final
contactPlayIconColor Color
final
duration Duration?
final
formatDuration ↔ (String Function(Duration duration)?)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
me bool
final
meBgColor Color
final
meFgColor Color
final
mePlayIconColor Color
final
myAppState → _VoiceMessageState
final
noiseCount int
final
noiseHeight double
final
noiseWidth double
final
onPlay ↔ (dynamic Function()?)
getter/setter pair
played bool
final
radius double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDuration bool
final
waveBgColor Color
final
waveColor Color
final
waveForm List<double>?
final
width double
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _VoiceMessageState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stopPlaying() → void
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited