openDirectory method

void openDirectory(
  1. FileSystemEntity entity
)

Open directory by providing Directory.

Implementation

void openDirectory(FileSystemEntity entity) {
  if (entity is Directory) {
    _updatePath(entity.path);
  } else {
    throw ("FileSystemEntity entity is File. Please provide a Directory(folder) to be opened not File");
  }
}