updateStateFromExternal method

void updateStateFromExternal({
  1. AssetPathEntity? album,
  2. List<ImageObject>? selectedImages,
})

Update private state by function call from external function.

Implementation

void updateStateFromExternal(
    {AssetPathEntity? album, List<ImageObject>? selectedImages}) {
  if (selectedImages != null) {
    _selectedImages = [...selectedImages];
  }
  if (album != null) {
    _assets.clear();
    _thumbnailCache.clear();
    _album = album;
    _fetchMedia(_album);
  }
}