ImagePickerHelper class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Properties
- errorKey ↔ String
-
getter/setter pair
- imageQuality ↔ int?
-
getter/setter pair
- isPicking → bool
-
True while a pick runs: the picker is open or the platform is still
resizing the chosen image.
no setter
- maxHeight ↔ double?
-
getter/setter pair
- maxWidth ↔ double?
-
getter/setter pair
-
picking
→ ValueListenable<
bool> -
isPicking as a listenable, e.g. to show a spinner on a photo tile.
no setter
- titleKey ↔ String
-
getter/setter pair
Static Methods
-
options(
{double? maxWidth, double? maxHeight, int? imageQuality}) → void -
pick(
{required void onPicked(File image), ImagePickerSource source = ImagePickerSource.gallery, BuildContext? context, double? maxWidth, double? maxHeight, int? imageQuality}) → Future< void> -
Picks an image and gives it to
onPicked. While a pick runs, another call opens nothing: it waits for the running pick and does not call its ownonPicked. -
translationKeys(
{String? title, String? error}) → void