changeAlbum method

Future<void> changeAlbum({
  1. required GalleryAlbum album,
  2. required BuildContext context,
  3. required PhoneGalleryController controller,
  4. required bool singleMedia,
  5. 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);
}