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.
no setterinherited
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.
no setterinherited

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.
jpeg → const ImageType
Joint Photographic Experts Group image type.
png → const ImageType
Portable Network Graphics image type.
unknown → const ImageType
Unknown image type.