dispatchRemovePhotoEvent method

dynamic dispatchRemovePhotoEvent(
  1. int index
)

For remove photo from perticular index

Implementation

dispatchRemovePhotoEvent(int index) {
  var imageList = (state as ImageListState).images;
  imageList[index].imageUrl = null;
  add(ImageListEvent(imageList));
}