toPascalCase static method
Implementation
static String toPascalCase(String source) => source
.toLowerCase()
.replaceAll(RegExp('[^A-Za-z0-9]'), ' ')
.split(' ')
.where((word) => word.isNotEmpty)
.fold('', (concatenation, word) => concatenation + capitalize(word));