changeAlbum method
Future<void>
changeAlbum({
- required GalleryAlbum album,
- required BuildContext context,
- required PhoneGalleryController controller,
- required bool singleMedia,
- required bool isBottomSheet,
Implementation
Future<void> changeAlbum(
{required GalleryAlbum album,
required BuildContext context,
required PhoneGalleryController controller,
required bool singleMedia,
required bool isBottomSheet}) async {
_selectedFiles.clear();
selectedAlbum = album;
update();
updatePickerListener();
await pageController.animateToPage(1,
duration: const Duration(milliseconds: 500), curve: Curves.easeIn);
}