AssetMediaProvider constructor

AssetMediaProvider(
  1. String name,
  2. String mediaType,
  3. String assetName, {
  4. String? description,
})

Creates a new asset media provider with the given name, mediaType and assetName. Optionally specify the size in bytes and the description.

Implementation

AssetMediaProvider(String name, String mediaType, this.assetName,
    {String? description})
    : super(name, mediaType, null, description: description);