deleteIfExists static method

void deleteIfExists(
  1. String filePath
)

Implementation

static void deleteIfExists(String filePath) {
  if (exists(filePath)) {
    delete(filePath);
  }
}