MediaProvider class abstract
Defines a media provider
- Implementers
- Annotations
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 the optional description.
const
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
- isMessage → bool
-
Checks if this is a message
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
-
toMemoryProvider(
) → Future< MemoryMediaProvider> -
Converts this provider to a
MemoryMediaProvider
, note that the mediaType will stay the same -
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited