MediaFormat class

Constructors

MediaFormat.new({required MediaType type, required Set<String> extensions, required String mimeType, bool known = true})
const
MediaFormat.bmp()
const
MediaFormat.exr()
const
MediaFormat.gif()
const
MediaFormat.ico()
const
MediaFormat.jpeg()
const
MediaFormat.png()
const
MediaFormat.pnm()
const
MediaFormat.psd()
const
MediaFormat.pvr()
const
MediaFormat.rgba()
const
MediaFormat.tga()
const
MediaFormat.tiff()
const
MediaFormat.unknown()
const
MediaFormat.unknownImage()
const
MediaFormat.webp()
const

Properties

extensions Set<String>
final
hashCode int
The hash code for this object.
no setterinherited
known bool
final
mimeType String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type MediaType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromExtensionOrType(String t) MediaFormat
getFormat(File file, {bool trustExtension = false}) Future<MediaFormat>