ImagePickerServiceDefault class

The ImagePickerServiceDefault is the default implementation of the ImagePickerService. It uses the Image Picker package to pick an image and returns it as a Uint8List.

Implemented types

Constructors

ImagePickerServiceDefault({ImagePicker? imagePicker})

Properties

hashCode → int
The hash code for this object.
no setterinherited
imagePicker ↔ ImagePicker?
It's possible to have your own implementation for the Image Picker if you don't want to use the Image Picker Package.
getter/setter pair
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
pickImage(ImageSource source, {ImagePickerConfig? config}) → Future<Uint8List?>
pickImage is the function that picks the image and returns it as a Uint8List. The function requires source, an ImageSource that's the method of how the image needs to be picked, for example gallery or camera.
override
toString() → String
A string representation of this object.
inherited

Operators

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