Future<File> get stateFile async { _appDataDir ??= await getApplicationDocumentsDirectory(); return File(p.join(_appDataDir!.path, filename)); }