UrlMediaProvider class

Media provider for remote media files

Inheritance

Constructors

UrlMediaProvider(String name, String mediaType, String url, {int? size, String? description})
Creates a new URL media provider with the given name, mediaType and url. Optionally specify the size in bytes and the description.

Properties

description String?
Description, can be useful when sharing this media
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isApplication bool
Checks if this is an application media
no setterinherited
isAudio bool
Checks if this is an audio media
no setterinherited
isFont bool
Checks if this is a font
no setterinherited
isImage bool
Checks if this is an image
no setterinherited
isModel bool
Checks if this is a model
no setterinherited
isText bool
Checks if this is text
no setterinherited
isVideo bool
Checks if this is a video
no setterinherited
mediaType String
The media type like text/plain or image/jpeg
finalinherited
name String
The name of this media
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
The size in bytes, if known
finalinherited
url String
The url like https://domain.com/resources/file.png
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