upperCamelCase property

String get upperCamelCase

Implementation

String get upperCamelCase {
  final pattern = RegExp('[_./-]');
  return this.split(pattern).mapIndexed((i, e) {
    if (e.length > 1) {
      return e[0].toUpperCase() + e.substring(1);
    } else if (e.length == 1) {
      return e.toUpperCase();
    } else {
      return e;
    }
  }).join();
}