appStatePath property

String? get appStatePath

The path of the app's state file among files: app.txt beside the pages read, else whichever there is; null when the site has none.

Implementation

String? get appStatePath {
  final beside = pageSources.isNotEmpty && pageSources.first.startsWith('site/') ? 'site/$notationAppStatePath' : notationAppStatePath;
  for (final p in [beside, notationAppStatePath, 'site/$notationAppStatePath']) {
    if (files.containsKey(p)) return p;
  }
  return null;
}