storesAvailable property
List<StoreDirectory>
get
storesAvailable
Retrieve all the available StoreDirectorys
For asynchronous version, see storesAvailableAsync. Note that this statistic is not cached for performance, as the effect would be negligible.
Implementation
List<StoreDirectory> get storesAvailable => _access.stores
.listSync()
.map(
(e) => e is Directory
? StoreDirectory(
_rootDirectory,
p.split(e.absolute.path).last,
autoCreate: false,
)
: null,
)
.whereType<StoreDirectory>()
.toList();