splitComplex function
Implementation
List<String> splitComplex(String input) {
final parts = input.split(RegExp(r'[,:]')); // split on either : or ,
final uppercase = parts.map((s) => s.toUpperCase());
final noSpace = uppercase.map((s) => s.replaceAll(' ', '_'));
final camelCase = noSpace.map((s) => toCamelCase(s.trim()));
return camelCase.where((s) => s.isNotEmpty).toList();
}