reloadPhoto method

void reloadPhoto(
  1. int index, {
  2. bool alsoEvict = true,
})

Reloads the ImageProvider of given index from ExtendedPhotoGallery. Note that here index should exclude non-photo pages, just the same as indies passed to photoPageBuilder for ExtendedPhotoGallery.advanced.

Implementation

void reloadPhoto(int index, {bool alsoEvict = true}) {
  if (index >= 0 && index < widget._pageCount) {
    _photoViewKeys[index].currentState?.reload(alsoEvict: alsoEvict);
  }
}