cleanIfExists function

void cleanIfExists(
  1. String path
)

Implementation

void cleanIfExists(String path) => Directory(path).existsSync()
    ? Directory(path).deleteSync(recursive: true)
    : null;