init static method

Future<PersistCookieJar> init()

Implementation

static Future<PersistCookieJar> init() async {
  Directory documentsDir = await getApplicationDocumentsDirectory();
  final documentsPath = documentsDir.path;

  return PersistCookieJar(
    ignoreExpires: true,
    storage: FileStorage(documentsPath),
    persistSession: true,
  );
}