blankList method

List<Images> blankList()

Show blank images (Thumbnails)

Implementation

List<Images> blankList() {
  var imageList = <Images>[];

  /// check
  final bool isCustomImageList =
      listOfImages != null && listOfImages!.isNotEmpty;
  if (isCustomImageList) {
    imageList = listOfImages!;
  }

  for (int i = isCustomImageList ? listOfImages!.length : 0;
      i < getImageCount();
      i++) {
    var images = Images();

    images.id = i + 1;
    imageList.add(images);
  }

  return imageList;
}