EditedImage class
Describes an image generated or transformed by the image processing APIs.
Constructors
- EditedImage({required Uint8List bytes, required int width, required int height, required String label, required String operation, required int elapsedMs, ImageClipOutputFormat format = ImageClipOutputFormat.png, int? sourceWidth, int? sourceHeight})
-
Creates an immutable image processing result.
const
Properties
- bytes → Uint8List
-
Encoded bytes for the image.
final
- bytesLabel → String
-
Encoded byte length formatted for display.
no setter
- dimensionsLabel → String
-
Image dimensions formatted as
widthxheight.no setter - elapsedMs → int
-
Processing time in milliseconds.
final
- fileExtension → String
-
File extension for format, without a leading dot.
no setter
- format → ImageClipOutputFormat
-
Encoded output format for bytes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Height of the image in physical pixels.
final
- isPreviewSized → bool
-
Whether this image is smaller than its decoded source dimensions.
no setter
- label → String
-
Human-readable image label preserved through processing operations.
final
- mimeType → String
-
MIME type for format.
no setter
- operation → String
-
Human-readable name of the operation that produced this image.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceHeight → int
-
Source decoded height before optional decode-time preview resizing.
final
- sourceWidth → int
-
Source decoded width before optional decode-time preview resizing.
final
- width → int
-
Width of the image in physical pixels.
final
Methods
-
copyWith(
{Uint8List? bytes, int? width, int? height, String? label, String? operation, int? elapsedMs, ImageClipOutputFormat? format, int? sourceWidth, int? sourceHeight}) → EditedImage - Returns a copy with selected values replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - Converts this result to a map that can be sent across Flutter isolates.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, Object?> map) → EditedImage - Creates an EditedImage from the isolate-safe map returned by toMap.