doesFileExist static method

Future<bool> doesFileExist(
  1. String filename
)

Implementation

static Future<bool> doesFileExist(String filename) async {
  File f = File(filename);
  if (await f.exists()) {
    return true;
  }
  return false;
}