MediaLoading enum

Indicates how the browser should load the media. Loading is only deferred when JavaScript is enabled.

Inheritance

Constructors

MediaLoading(String value)
const

Values

eager → const MediaLoading

Loads the media immediately, regardless of whether or not the media is currently within the visible viewport (this is the default value).

const MediaLoading('eager')
lazy → const MediaLoading

Defers loading the media until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the media until it's reasonably certain that it will be needed. This generally improves the performance of the media in most typical use cases.

const MediaLoading('lazy')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<MediaLoading>
A constant List of the values in this enum, in order of their declaration.