static String? getFileExtension(String? filePath) { return (filePath != null && filePath.isNotEmpty) ? path.extension(filePath) : filePath; }