MediaProvider class

Implementers

Constructors

MediaProvider(String name, String mediaType, int? size, {String? description})
Creates a new media provider with the given name, mediaType like application/pdf, size in bytes and description.

Properties

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