Preload enum

Intended to provide a hint to the browser about what the author thinks will lead to the best user experience when loading a media object. The default value is different for each browser. The spec advises it to be set to Preload.metadata.

Inheritance
Available extensions

Values

none → const Preload

Indicates that the audio should not be preloaded.

const Preload('none')
metadata → const Preload

Indicates that only audio metadata (e.g. length) is fetched.

const Preload('metadata')
auto → const Preload

Indicates that the whole audio file can be downloaded, even if the user is not expected to use it.

const Preload('auto')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<Preload>
A constant List of the values in this enum, in order of their declaration.