BloomCapturedPhoto class
Represents an image file captured from the device camera or picked from the gallery.
Encapsulates the absolute filesystem path, optional raw image bytes, dimensions (width, height), and MIME type.
Example:
final photo = await camera.takePicture();
if (photo != null) {
print('Captured photo path: ${photo.path}, bytes: ${photo.bytes?.length}');
}
Constructors
- BloomCapturedPhoto({required String path, Uint8List? bytes, int? width, int? height, String mimeType = 'image/jpeg'})
-
Creates a BloomCapturedPhoto result instance.
const
Properties
- bytes → Uint8List?
-
Raw image byte data in memory, if read.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
Image pixel height if available.
final
- mimeType → String
-
MIME type string (defaults to
'image/jpeg').final - path → String
-
File system path to the saved image file on device.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int?
-
Image pixel width if available.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited