checkFileExistenceAsync static method

Future<bool> checkFileExistenceAsync({
  1. required String filePath,
})



Implementation

static Future<bool> checkFileExistenceAsync({
  required String filePath,
}) async {
  final file = File(filePath);
  if (await file.exists()) {
    return true;
  } else {
    return false;
  }
}