deleteDirectory abstract method

Future<void> deleteDirectory(
  1. String path, {
  2. bool recursive = false,
})

Deletes the directory at path.

With recursive, its content goes with it. Without it, the directory must be empty. Throws when path is absent or, without recursive, still holds entries.

Implementation

Future<void> deleteDirectory(String path, {bool recursive = false});