FileIcon constructor
Implementation
FileIcon({
super.key,
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;
}
}