ZetaAudioVisualizer class

Audio Visualizer used within the ZetaVoiceMemo component.

Inheritance
Available extensions

Constructors

ZetaAudioVisualizer.new({Key? key, bool? rounded, String? assetPath, String? url, String? deviceFilePath, bool isRecording = false, Color? backgroundColor, Color? foregroundColor, Color? tertiaryColor, Color? playButtonColor, VoidCallback? onPause, VoidCallback? onPlay, String errorMessage = 'Audio cannot be played'})
Constructs a ZetaAudioVisualizer.
const

Properties

assetPath String?
The path of a local audio asset to visualize.
final
backgroundColor Color?
The background color of the component.
final
deviceFilePath String?
The path to a local audio file on the device to visualize.
final
errorMessage String
Error message to display when audio can not be played.
final
foregroundColor Color?
The foreground color of the component - used for the bars in the visualizer.
final
hashCode int
The hash code for this object.
no setterinherited
isRecording bool
Whether the audio visualizer is currently recording.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onPause VoidCallback?
Callback when the pause button is pressed.
final
onPlay VoidCallback?
Callback when the play button is pressed.
final
playButtonColor Color?
The color used for the play button in the visualizer.
final
rounded bool?
Sets rounded or sharp border of the containing box and the icon style.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tertiaryColor Color?
The color used for the audio visualizer bars before they have been played.
final
url String?
The URL of a remote audio asset to visualize.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ZetaAudioVisualizer>
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.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paddingAll(double space) Widget

Available on Widget, provided by the SpacingWidget extension

Equal padding on all sides.
paddingBottom(double space) Widget

Available on Widget, provided by the SpacingWidget extension

Padding on bottom only.
paddingEnd(double space) Widget

Available on Widget, provided by the SpacingWidget extension

Padding on start edge only. Is affected by whether the device is LTR or RTL:
paddingHorizontal(double space) Widget

Available on Widget, provided by the SpacingWidget extension

Equal padding on start and end.
paddingStart(double space) Widget

Available on Widget, provided by the SpacingWidget extension

Padding on start edge only. Is affected by whether the device is LTR or RTL:
paddingTop(double space) Widget

Available on Widget, provided by the SpacingWidget extension

Padding on top only.
paddingVertical(double space) Widget

Available on Widget, provided by the SpacingWidget extension

Equal padding on top and bottom.
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, int wrapWidth = 65}) 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