Audio class

Contains WidgetElement that contains a virtual node with the <audio> tag.

Constructors

Audio([String? value])
The <audio> HTML element is used to embed sound content in documents. Read more...

Properties

hashCode int
The hash code for this object.
no setterinherited
node → VirtualNodeWidget
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String
Sets the WidgetElement HTML tag.
no getterinherited

Methods

$(WidgetElement element) → WidgetElement
Adds the specified WidgetElement to WidgetElement from which the method was called. Think of it as an add, insert, etc. method.
inherited
$list(List<WidgetElement> elements) → WidgetElement
Adds the specified list with WidgetElement to the WidgetElement from which the method was called. Think of it as an add, insert, etc. method.
inherited
$slot(int id) → WidgetElement
Creates a slot for inserting a side Widget.
inherited
a(String name, dynamic value, {bool? removeIf}) → WidgetElement
Allows to create a custom HTML attribute, for example, if you can't find the desired one.
inherited
accessKey(String key, {bool? removeIf}) → WidgetElement
The accesskey global attribute provides a hint for generating a keyboard shortcut for the current element. Read more...
inherited
autoCapitalize(String value, {bool? removeIf}) → WidgetElement
The autocapitalize global attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. Read more...
inherited
autoFocus(bool boolean) → WidgetElement
The autofocus global attribute indicating that an element should be focused on page load, or when the <dialog> that it is part of is displayed. Read more...
inherited
autoPlay(bool boolean) Audio
If specified, the audio will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading. Read more...
contentEditable(bool boolean, {bool? removeIf}) → WidgetElement
The contenteditable global attribute indicating if the element should be editable by the user. Read more...
inherited
controls(bool boolean) Audio
If this attribute is present, the browser will offer controls to allow the user to control audio playback, including volume, seeking, and pause/resume playback. Read more...
crossOrigin(String mode, {bool? removeIf}) Audio
This attribute indicates whether to use CORS to fetch the related audio file. Read more...
dir(String dir, {bool? removeIf}) → WidgetElement
The dir global attribute that indicates the directionality of the element's text. Read more...
inherited
draggable(bool boolean, {bool? removeIf}) → WidgetElement
The draggable global attribute attribute that indicates whether the element can be dragged, either with native browser behavior or the HTML Drag and Drop API. Read more...
inherited
enterKeyHint(String key, {bool? removeIf}) → WidgetElement
The enterkeyhint global attribute defining what action label (or icon) to present for the enter key on virtual keyboards. Read more...
inherited
hidden(bool boolean) → WidgetElement
The hidden global attribute indicating that the browser should not render the contents of the element. Read more...
inherited
id(String id, {bool? removeIf}) → WidgetElement
The id global attribute defines an identifier (ID) which must be unique in the whole document. Read more...
inherited
inputMode(String mode, {bool? removeIf}) → WidgetElement
The inputmode global attribute that hints at the type of data that might be entered by the user while editing the element or its contents. Read more...
inherited
itemId(String value, {bool? removeIf}) → WidgetElement
The itemid global attribute provides microdata in the form of a unique, global identifier of an item. Read more...
inherited
itemProp(String name, {bool? removeIf}) → WidgetElement
The itemprop global attribute is used to add properties to an item. Read more...
inherited
itemRef(String value, {bool? removeIf}) → WidgetElement
itemref provides a list of element IDs (not itemids) elsewhere in the document, with additional properties Read more...
inherited
itemScope(bool boolean) → WidgetElement
itemscope is a global attribute that defines the scope of associated metadata. Read more...
inherited
itemType(String url, {bool? removeIf}) → WidgetElement
The global attribute itemtype specifies the URL of the vocabulary that will be used to define itemprop's (item properties) in the data structure. Read more...
inherited
lang(String langCode, {bool? removeIf}) → WidgetElement
The lang global attribute helps define the language of an element: the language that non-editable elements are written in, or the language that the editable elements should be written in by the user. Read more...
inherited
loop(bool boolean) Audio
If specified, the audio player will automatically seek back to the start upon reaching the end of the audio. Read more...
muted(bool boolean) Audio
A attribute that indicates whether the audio will be initially silenced. Read more...
nonce(String crypto, {bool? removeIf}) → WidgetElement
The nonce global attribute defining a cryptographic nonce ("number used once") which can be used by Content Security Policy to determine whether or not a given fetch will be allowed to proceed for a given element. Read more...
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(String eventName, dynamic fun(Element, Event)) → WidgetElement
Allows to create a custom HTML event, for example, if you can't find the desired one.
inherited
onAbort(dynamic fun(Element, Event)?) Audio
The abort event is fired when the resource was not fully loaded, but not as the result of an error. Read more...
onAdd(dynamic fun(Element)?) → WidgetElement
The event is activated when an WidgetElement is added to the HTML DOM.
inherited
onBeforeCopy(dynamic fun(Element, Event)?) → WidgetElementVisible
The copy event fires when the user initiates a copy action through the browser's user interface. Read more...
inherited
onBeforeCut(dynamic fun(Element, Event)?) → WidgetElementVisible
The cut event fires when the user initiates a cut action through the browser's user interface. Read more...
inherited
onBeforePaste(dynamic fun(Element, Event)?) → WidgetElementVisible
The paste event is fired when the user has initiated a "paste" action through the browser's user interface. Read more...
inherited
onBlur(dynamic fun(Element, Event)?) → WidgetElementVisible
The blur event fires when an element has lost focus. Read more...
inherited
onCanPlay(dynamic fun(Element, Event)?) Audio
The canplay event is fired when the user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content. Read more...
onCanPlayThrough(dynamic fun(Element, Event)?) Audio
The canplaythrough event is fired when the user agent can play the media, and estimates that enough data has been loaded to play the media up to its end without having to stop for further buffering of content. Read more...
onClick(dynamic fun(Element, Event)?) → WidgetElementVisible
An element receives a click event when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element. Read more...
inherited
onContextMenu(dynamic fun(Element, Event)?) → WidgetElementVisible
The contextmenu event fires when the user attempts to open a context menu. Read more...
inherited
onCopy(dynamic fun(Element, Event)?) → WidgetElementVisible
The copy event fires when the user initiates a copy action through the browser's user interface. Read more...
inherited
onCut(dynamic fun(Element, Event)?) → WidgetElementVisible
The cut event fires when the user initiates a cut action through the browser's user interface. Read more...
inherited
onDestroy(dynamic fun()?) → WidgetElement
The event is activated when Widget is removed from the Reio Virtual DOM.
inherited
onDoubleClick(dynamic fun(Element, Event)?) → WidgetElementVisible
The dblclick event fires when a pointing device button (such as a mouse's primary button) is double-clicked; that is, when it's rapidly clicked twice on a single element within a very short span of time. Read more...
inherited
onDrag(dynamic fun(Element, Event)?) → WidgetElementVisible
The drag event is fired every few hundred milliseconds as an element or text selection is being dragged by the user. Read more...
inherited
onDragEnd(dynamic fun(Element, Event)?) → WidgetElementVisible
The dragend event is fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key). Read more...
inherited
onDragEnter(dynamic fun(Element, Event)?) → WidgetElementVisible
The dragend event is fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key). Read more...
inherited
onDragLeave(dynamic fun(Element, Event)?) → WidgetElementVisible
The dragleave event is fired when a dragged element or text selection leaves a valid drop target. Read more...
inherited
onDragOver(dynamic fun(Element, Event)?) → WidgetElementVisible
The dragover event is fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds). Read more...
inherited
onDragStart(dynamic fun(Element, Event)?) → WidgetElementVisible
The dragover event is fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds). Read more...
inherited
onDrop(dynamic fun(Element, Event)?) → WidgetElementVisible
The drop event is fired when an element or text selection is dropped on a valid drop target. Read more...
inherited
onDurationChange(dynamic fun(Element, Event)?) Audio
The durationchange event is fired when the duration attribute has been updated. Read more...
onEmptied(dynamic fun(Element, Event)?) Audio
The emptied event is fired when the media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it. Read more...
onEnded(dynamic fun(Element, Event)?) Audio
The ended event is fired when playback or streaming has stopped because the end of the media was reached or because no further data is available. Read more...
onError(dynamic fun(Element, Event)?) Audio
The error event is fired on an Element object when a resource failed to load, or can't be used. Read more...
onFocus(dynamic fun(Element, Event)?) → WidgetElementVisible
The focus event fires when an element has received focus. The event does not bubble, but the related focusin event that follows does bubble. Read more...
inherited
onKeyDown(dynamic fun(Element, Event)?) → WidgetElementVisible
The keydown event is fired when a key is pressed. Read more...
inherited
onKeyUp(dynamic fun(Element, Event)?) → WidgetElementVisible
The keyup event is fired when a key is released. Read more...
inherited
onLoadedData(dynamic fun(Element, Event)?) Audio
The loadeddata event is fired when the frame at the current playback position of the media has finished loading; often the first frame. Read more...
onLoadedMetadata(dynamic fun(Element, Event)?) Audio
The loadedmetadata event is fired when the metadata has been loaded. Read more...
onLoadStart(dynamic fun(Element, Event)?) Audio
The loadstart event is fired when the browser has started to load a resource. Read more...
onMount(dynamic fun(Element)?) → WidgetElement
The event is activated when Widget is mounted in the Reio Virtual DOM.
inherited
onMouseDown(dynamic fun(Element, Event)?) → WidgetElementVisible
The mousedown event is fired at an Element when a pointing device button is pressed while the pointer is inside the element. Read more...
inherited
onMouseEnter(dynamic fun(Element, Event)?) → WidgetElementVisible
The mouseenter event is fired at an Element when a pointing device (usually a mouse) is initially moved so that its hotspot is within the element at which the event was fired. Read more...
inherited
onMouseLeave(dynamic fun(Element, Event)?) → WidgetElementVisible
The mouseleave event is fired at an Element when the cursor of a pointing device (usually a mouse) is moved out of it. Read more...
inherited
onMouseMove(dynamic fun(Element, Event)?) → WidgetElementVisible
The mousemove event is fired at an element when a pointing device (usually a mouse) is moved while the cursor's hotspot is inside it. Read more...
inherited
onMouseOut(dynamic fun(Element, Event)?) → WidgetElementVisible
The mouseout event is fired at an Element when a pointing device (usually a mouse) is used to move the cursor so that it is no longer contained within the element or one of its children. Read more...
inherited
onMouseOver(dynamic fun(Element, Event)?) → WidgetElementVisible
The mouseover event is fired at an Element when a pointing device (such as a mouse or trackpad) is used to move the cursor onto the element or one of its child elements. Read more...
inherited
onMouseUp(dynamic fun(Element, Event)?) → WidgetElementVisible
The mouseup event is fired at an Element when a button on a pointing device (such as a mouse or trackpad) is released while the pointer is located inside it. Read more...
inherited
onPaste(dynamic fun(Element, Event)?) → WidgetElementVisible
The paste event is fired when the user has initiated a "paste" action through the browser's user interface. Read more...
inherited
onPause(dynamic fun(Element, Event)?) Audio
The pause event is sent when a request to pause an activity is handled and the activity has entered its paused state, most commonly after the media has been paused through a call to the element's pause() method. Read more...
onPlay(dynamic fun(Element, Event)?) Audio
The play event is fired when the paused property is changed from true to false, as a result of the play method, or the autoplay attribute. Read more...
onPlaying(dynamic fun(Element, Event)?) Audio
The playing event is fired after playback is first started, and whenever it is restarted. Read more...
onProgress(dynamic fun(Element, Event)?) Audio
The progress event is fired periodically as the browser loads a resource. Read more...
onRateChange(dynamic fun(Element, Event)?) Audio
The ratechange event is fired when the playback rate has changed. Read more...
onRemove(dynamic fun()?) → WidgetElement
The event is activated when an WidgetElement is removed from the HTML DOM.
inherited
onSeeked(dynamic fun(Element, Event)?) Audio
The seeked event is fired when a seek operation completed, the current playback position has changed. Read more...
onSeeking(dynamic fun(Element, Event)?) Audio
The seeking event is fired when a seek operation starts, meaning the Boolean seeking attribute has changed to true and the media is seeking a new position. Read more...
onStalled(dynamic fun(Element, Event)?) Audio
The stalled event is fired when the user agent is trying to fetch media data, but data is unexpectedly not forthcoming. Read more...
onSuspend(dynamic fun(Element, Event)?) Audio
The suspend event is fired when media data loading has been suspended. Read more...
onTimeUpdate(dynamic fun(Element, Event)?) Audio
The timeupdate event is fired when the time indicated by the currentTime attribute has been updated. Read more...
onTouchCancel(dynamic fun(Element, Event)?) → WidgetElementVisible
The touchcancel event is fired when one or more touch points have been disrupted in an implementation-specific manner (for example, too many touch points are created). Read more...
inherited
onTouchEnd(dynamic fun(Element, Event)?) → WidgetElementVisible
The touchend event fires when one or more touch points are removed from the touch surface. Read more...
inherited
onTouchMove(dynamic fun(Element, Event)?) → WidgetElementVisible
The touchmove event is fired when one or more touch points are moved along the touch surface. Read more...
inherited
onTouchStart(dynamic fun(Element, Event)?) → WidgetElementVisible
The touchstart event is fired when one or more touch points are placed on the touch surface. Read more...
inherited
onTransitionEnd(dynamic fun(Element, Event)?) → WidgetElementVisible
The transitionend event is fired when a CSS transition has completed. Read more...
inherited
onVolumeChange(dynamic fun(Element, Event)?) Audio
The volumechange event is fired when the volume has changed. Read more...
onWaiting(dynamic fun(Element, Event)?) Audio
The waiting event is fired when playback has stopped because of a temporary lack of data. Read more...
onWheel(dynamic fun(Element, Event)?) → WidgetElementVisible
The wheel event fires when the user rotates a wheel button on a pointing device (typically a mouse). Read more...
inherited
preload(String value, {bool? removeIf}) Audio
This attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. Read more...
remove({required Widget widget}) → WidgetElement
Removes WidgetElement from the HTML DOM.
inherited
removeIf({required Widget widget, required bool condition()?}) → WidgetElement
Removes WidgetElement from the HTML DOM if the condition is true.
inherited
removeIfTrue({required Widget widget, required int slot, required bool condition()?}) → WidgetElement
Removes WidgetElement from the HTML DOM if the condition is true and adds it using $ method if it is false.
inherited
setJump(Map<int, WidgetElement> map) → WidgetElement
Splits the value into the specified elements. Accepts a map with the widget key, works together with the getJump function.
inherited
spellCheck(bool boolean, {bool? removeIf}) → WidgetElement
The spellcheck global attribute that defines whether the element may be checked for spelling errors. Read more...
inherited
src(String url, {bool? removeIf}) Audio
The URL of the audio to embed. Read more...
style(List<String> styleList, {bool? removeIf}) → WidgetElement
The style global attribute contains CSS styling declarations to be applied to the element. Read more...
inherited
tabIndex(int number, {bool? removeIf}) → WidgetElement
The tabindex global attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation. Read more...
inherited
thisClass(List<String> nameList, {bool? removeIf}) → WidgetElement
The class global attribute is a list of the case-sensitive classes of the element. Read more...
inherited
thisIs(String elementName, {bool? removeIf}) → WidgetElement
The is global attribute allows you to specify that a standard HTML element should behave like a defined custom built-in element (see Using custom elements for more details). Read more...
inherited
title(String text, {bool? removeIf}) → WidgetElement
The title global attribute contains text representing advisory information related to the element it belongs to. Read more...
inherited
toString() String
A string representation of this object.
inherited
translate(String value, {bool? removeIf}) → WidgetElement
The translate global attribute that is used to specify whether an element's translatable attribute values and its Text node children should be translated when the page is localized, or whether to leave them unchanged. Read more...
inherited

Operators

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