ImageFile class

The image file input for compressing

Available extensions

Constructors

ImageFile({required String filePath, required Uint8List rawBytes, String? contentType, int? width, int? height})

Properties

contentType → String?
Return the content type of image file input if any
no setter
extension → String
The extension of image file input
no setter
fileName → String
The name of image file input
no setter
filePath → String
The path of image file
final
hashCode → int
The hash code for this object.
no setterinherited
height → int?
Return the size of height from image
no setter
rawBytes → Uint8List
The raw bytes of image file
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeInBytes → int
The size of image file input in bytes
no setter
width → int?
Return the size of width from image
no setter

Methods

compress([Configuration config = const Configuration()]) → ImageFile
Compress image file input synchronously
compressInQueue([Configuration config = const Configuration()]) → Future<ImageFile>
Compress image file input asynchronously
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>

Available on ImageFile, provided by the HcImageFileExtension extension

toString() → String
A string representation of this object.
inherited

Operators

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