ImageUploadView constructor

ImageUploadView({
  1. Key? key,
  2. double imageWidth = 110,
  3. double imageHeight = 110,
  4. required List<UploadResultEntity> images,
  5. required String dirId,
  6. required String dirName,
  7. bool isFixedDir = false,
  8. UploadMode uploadMode = UploadMode.MULTIPLE,
  9. IPFSFileType fileType = IPFSFileType.image,
  10. ValueChanged<List<UploadResultEntity>>? valueChangedCallback,
  11. Widget? addImageWidget,
  12. bool isAllowCloud = true,
  13. int itemCount = 3,
  14. bool isCanEdit = true,
  15. String placeholder = '',
  16. int maxCount = -1,
  17. UploadBtnPosition btnPosition = UploadBtnPosition.RIGHT,
  18. ImageShape shape = ImageShape.None,
})

Implementation

ImageUploadView(
    {Key? key,
    this.imageWidth = 110,
    this.imageHeight = 110,
    required this.images,
    required this.dirId,
    required this.dirName,
    this.isFixedDir = false,
    this.uploadMode = UploadMode.MULTIPLE,
    this.fileType = IPFSFileType.image,
    this.valueChangedCallback,
    this.addImageWidget,
    this.isAllowCloud = true,
    this.itemCount = 3,
    this.isCanEdit = true,
    this.placeholder = '',
    this.maxCount = -1,
    this.btnPosition = UploadBtnPosition.RIGHT,
    this.shape = ImageShape.None})
    : super(key: key);