DVImageSource enum

Where a DVImage's bytes come from.

Inheritance
Available extensions

Values

network → const DVImageSource

A remote URL, fetched at render time.

asset → const DVImageSource

An asset bundled with the application.

file → const DVImageSource

A path on the local filesystem. Not available on the web.

stored → const DVImageSource

A key in DV.FileStorage: bytes the application holds itself.

The other three name something outside the application -- an address, a bundled file, a path on a disk. This one does not, which is what an imported design needs: a Figma import writes the URL Figma hands back, those expire, and a page that looked right on the day it was imported shows broken images a fortnight later. Stored bytes have nothing to expire, need no build step, and work wherever the storage adapter does.

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

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<DVImageSource>
A constant List of the values in this enum, in order of their declaration.