directoryEmpty method

bool directoryEmpty(
  1. String path
)

Implementation

bool directoryEmpty(String path) {
  final directory = Directory(path);
  return directory.existsSync() && directory.listSync().isEmpty;
}