formatFileName function
Function to format a file name to camelCase.
Implementation
String formatFileName(String fileName) {
List<String> parts = splitString(fileName, [' ', '_', '-', '.']);
String formattedString = parts.first.toLowerCase() +
parts.sublist(1).map((part) => part.capitalize()).join();
return formattedString;
}