actionDecision method

dynamic actionDecision(
  1. bool isDirectory,
  2. bool isZipFile
)

Implementation

actionDecision(bool isDirectory, bool isZipFile) {
  if (isShare && !isDirectory)
    return onShared(item);
  else if (isDirectory)
    return onPushScreen(item.path);
  else if (isZipFile)
    return onUnzipFile(item.path);
  else
    return onOpenDocument(item.path);
}