deleteFile method

  1. @override
bool deleteFile(
  1. String path
)
override

Delete a file at the given path. Returns true if successful, false otherwise.

Implementation

@override
bool deleteFile(String path) {
  try {
    io.File(path).deleteSync();
    return true;
  } catch (_) {
    return false;
  }
}