Audio class

Inheritance
Available extensions

Constructors

Audio({required String src, MediaController? controller, String? className, Map<String, dynamic>? style, String? id, Map<String, String>? attributes, List<Component>? children, List<String>? fallback, String? poster, String? alt, String? width, String? height, void onLoad(Event)?, void onError(Event)?, void onAbort(Event)?, String tag = "audio", List<MediaControl>? controls = MediaControl.values, bool autoPlay = false, bool loop = false, bool muted = false, bool playsInline = false, bool showControls = true})
Audio component.

Properties

alt String?
The alternative text for the media.
finalinherited
attributes Map<String, String>?
The attributes of the element.
finalinherited
autoPlay bool
Auto play the audio.
final
children List<Component>?
The children of the element.
finalinherited
className String?
Css class name of the element.
finalinherited
controller MediaController?
Media controller for the audio.
final
controls List<MediaControl>?
Media controls for the audio.
final
element HTMLElement?
getter/setter pairinherited
eventListeners List<Map<String, dynamic>>
getter/setter pairinherited
fallback List<String>?
Optional fallback for the media source.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height String?
The height of the media.
finalinherited
id String?
The id of the element.
finalinherited
loop bool
Loop the audio.
final
muted bool
Mute the audio.
final
onAbort → void Function(Event)?
The function to call when the media is aborted.
finalinherited
onBlur → void Function(Event)?
finalinherited
onChange → void Function(Event)?
finalinherited
onClick → void Function(Event)?
Callback for the click event.
finalinherited
onContextMenu → void Function(Event)?
Callback for the contextmenu event.
finalinherited
onDoubleClick → void Function(Event)?
Callback for the doubleclick event.
finalinherited
onDrag → void Function(Event)?
finalinherited
onDragEnd → void Function(Event)?
finalinherited
onDragEnter → void Function(Event)?
finalinherited
onDragLeave → void Function(Event)?
finalinherited
onDragOver → void Function(Event)?
finalinherited
onDragStart → void Function(Event)?
finalinherited
onDrop → void Function(Event)?
finalinherited
onError → void Function(Event)?
The function to call when the media fails to load.
finalinherited
onFocus → void Function(Event)?
finalinherited
onInput → void Function(Event)?
finalinherited
onKeyDown → void Function(Event)?
finalinherited
onKeyPress → void Function(Event)?
finalinherited
onKeyUp → void Function(Event)?
finalinherited
onLoad → void Function(Event)?
The function to call when the media is loaded.
finalinherited
onMouseDown → void Function(Event)?
finalinherited
onMouseMove → void Function(Event)?
finalinherited
onMouseOut → void Function(Event)?
finalinherited
onMouseOver → void Function(Event)?
finalinherited
onMouseUp → void Function(Event)?
finalinherited
onScroll → void Function(Event)?
finalinherited
onStackChange StreamController<(String, Component)>
getter/setter pairinherited
onSubmit → void Function(Event)?
finalinherited
onWheel → void Function(Event)?
finalinherited
playsInline bool
Plays inline.
final
poster String?
The poster of the media if it is a video.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showControls bool
Show default controls.
final
src String
The source of the media. If the browser supports the media type, it will be displayed, otherwise the optional fallback will be used.
finalinherited
style Map<String, dynamic>?
The style of the element.
finalinherited
tag String
The tag name of the element.
finalinherited
width String?
The width of the media.
finalinherited

Methods

addEventListener(String event, void callback(Event), {Map<String, String>? options}) → void
inherited
append(Component child) → void
inherited
clear() → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove() → void
inherited
removeEventListener(String event, void callback(Event), {Map<String, String>? options}) → void
inherited
render() HTMLAudioElement
Creates an HTML Element represention of Component.
override
toString() String
A string representation of this object.
inherited
update() → void
Re-renders the component.
inherited

Operators

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