useCustomBaseDirectory static method

Future<void> useCustomBaseDirectory({
  1. required Directory baseDirectory,
  2. Directory? testDirectory,
})

If running from Flutter, the base directory will be the given baseDirectory. If running from tests, it will use the optional testDirectory, or if this is not provided, it will use the system's temp directory.

Implementation

static Future<void> useCustomBaseDirectory({
  required Directory baseDirectory,
  Directory? testDirectory,
}) =>
    LocalPersist.useCustomBaseDirectory(baseDirectory: baseDirectory, testDirectory: testDirectory);