MemoryMediaProvider constructor

MemoryMediaProvider(
  1. String name,
  2. String mediaType,
  3. Uint8List data, {
  4. String? description,
})

Creates a new meemory media provider with the given name, mediaType and data. Optionally specify the description.

Implementation

MemoryMediaProvider(String name, String mediaType, this.data,
    {String? description})
    : super(name, mediaType, data.length, description: description);