storesAvailableAsync property

Future<List<StoreDirectory>> get storesAvailableAsync

Retrieve all the available StoreDirectorys

For synchronous version, see storesAvailable. Note that this statistic is not cached for performance, as the effect would be negligible.

Implementation

Future<List<StoreDirectory>> get storesAvailableAsync async =>
    (await (await _access.stores.listWithExists())
            .map(
              (e) => e is Directory
                  ? StoreDirectory(
                      _rootDirectory,
                      p.split(e.absolute.path).last,
                      autoCreate: false,
                    )
                  : null,
            )
            .toList())
        .whereType<StoreDirectory>()
        .toList();