exists static method

Future<bool> exists(
  1. String fileName
)

Implementation

static Future<bool> exists(String fileName) async {
  return (await File(await getAppDirFilePath(fileName)).exists()) ||
      (await Directory(await getAppDirFilePath(fileName)).exists());
}