localizedTypeDescription method

string localizedTypeDescription(
  1. BuildContext context
)

Get the type description of the file or directory

Implementation

string localizedTypeDescription(BuildContext context) {
  if (this is File) {
    return context.translations.file;
  }
  if (this is Directory) {
    return context.translations.directory;
  }
  return context.translations.unknown;
}