MemoryMediaProvider class
Provides preloaded media
- Inheritance
-
- Object
- MediaProvider
- MemoryMediaProvider
Constructors
- MemoryMediaProvider(String name, String mediaType, Uint8List data, {String? description})
-
Creates a new meemory media provider with the given
name
,mediaType
anddata
. Optionally specify thedescription
.
Properties
- data → Uint8List
-
The preloaded media data
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