ImageFile class Null safety

The image file input for compressing

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
read-only
extension String
The extension of image file input
read-only
fileName String
The name of image file input
read-only
filePath String
The path of image file
final
hashCode int
The hash code for this object.
read-onlyinherited
height int?
Return the size of height from image
read-only
rawBytes Uint8List
The raw bytes of image file
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
sizeInBytes int
The size of image file input in bytes
read-only
width int?
Return the size of width from image
read-only

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 non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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