pickImages method

Future<bool> pickImages()

manually pick images. i.e. on click on external button. this method open Image picking window. It returns Future of bool, true if user has selected images.

Implementation

Future<bool> pickImages() async {
  final pickedImages = await picker(maxImages > 1 ? true : false);
  if (pickedImages.isNotEmpty) {
    _addImages(pickedImages);
    notifyListeners();
    return true;
  }
  return false;
}