exists static method

Future<bool> exists(
  1. List<String> paths
)

Implementation

static Future<bool> exists(List<String> paths) async {
  bool anyNotExists = false;
  for(String path in paths) {
    bool exists = await File(path).exists();
    if(!exists){
      anyNotExists = true;
    }
  }
  return !anyNotExists;
}