ImageType class

Image type. Represents type name and extension.

Annotations
  • @immutable

Constructors

ImageType.getByType(String type)
Returns ImageType by corresponding type string.
factory

Properties

extension String
File extension.
final
hashCode int
The hash code for this object.
read-onlyinherited
isUnknown bool
Whether is image type is unknown.
final
name String
Human-readable type name.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns human-readable type name.
override

Operators

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

Constants

gif → const ImageType
Graphics Interchange Format image type.
ImageType._('GIF', 'gif')
jpeg → const ImageType
Joint Photographic Experts Group image type.
ImageType._('JPEG', 'jpg')
png → const ImageType
Portable Network Graphics image type.
ImageType._('PNG', 'png')
unknown → const ImageType
Unknown image type.
ImageType._unknown('')