localizedTypeDescription method
- 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;
}