AssetMediaProvider class

Provides assets as media

Inheritance

Constructors

AssetMediaProvider(String name, String mediaType, String assetName, {String? description})
Creates a new asset media provider with the given name, mediaType and assetName. Optionally specify the size in bytes and the description.

Properties

assetName String
The name of the asset, depending on the asset location also requires the path
final
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

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