PickImageSettings class
Configuration for the ImagePicker used by ImagePickerAndCropperRepository.
All fields are optional. Defaults: 80% quality, rear camera, no maximum dimensions.
- Annotations
Constructors
- PickImageSettings({double? maxWidth, double? maxHeight, int? imageQuality = 80, CameraDevice preferredCameraDevice = CameraDevice.rear})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageQuality → int?
-
The image quality from 0 to 100 applied during picking. Defaults to 80.
final
- maxHeight → double?
-
The maximum height to scale the picked image to, or
nullfor no limit.final - maxWidth → double?
-
The maximum width to scale the picked image to, or
nullfor no limit.final - preferredCameraDevice → CameraDevice
-
The preferred camera to open when the source is the camera.
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 -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited