camel2Pascal property

String get camel2Pascal

Implementation

String get camel2Pascal => isCamelCase
    ? this[0].toUpperCase() + substring(1)
    : throw Exception('Invalid camel case: $this');