FileIcon constructor
Implementation
FileIcon({required this.extension, required this.size}) {
if (TimeVariables.imgExt
.any((element) => element.toUpperCase() == extension.toUpperCase())) {
typeIndex = 0;
} else if (TimeVariables.vidExt
.any((element) => element.toUpperCase() == extension.toUpperCase())) {
typeIndex = 1;
} else
typeIndex = 2;
}