setAssetCount method

dynamic setAssetCount()

Implementation

setAssetCount() async {
  Future.delayed(const Duration(seconds: 1), () async {
    if (currentAlbum != null) {
      _assetCount = await currentAlbum!.assetCountAsync;
      assetCountNotifier.value = _assetCount;
      assetCountNotifier.notifyListeners();
      notifyListeners();
    } else {
      assetCountNotifier.value = _assetCount;
      assetCountNotifier.notifyListeners();
      notifyListeners();
    }
  });
}