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 setteroverride
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
isMessage bool
Checks if this is a message
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
toMemoryProvider() Future<MemoryMediaProvider>
Converts this provider to a MemoryMediaProvider, note that the mediaType will stay the same
override
toString() String
A string representation of this object.
inherited
toTextProvider() Future<TextMediaProvider>
Converts this provider to a TextMediaProvider, note that the mediaType will stay the same
override

Operators

operator ==(Object other) bool
The equality operator.
override