Enclosure class

Media object attached to an entry, usually a binary object (image, sound, video) It has three required attributes. url says where the enclosure is located, length says how big it is in bytes, and type says what its type is, a standard MIME type.

The url must be an http url.

Constructors

Enclosure({required String url, required String length, String type = 'application/octet-stream'})
Creates a new Enclosure object
const
Enclosure.rssFromXml(XmlElement node)
Creates an Enclosure object from an XmlElement
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
length String
Length in bytes of the object
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Object's mime-type
final
url String
URI pointing to the object
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