varName property Null safety

String varName

convert to a standard variable name format: foo bar -> fooBar. similar to camelCase, but starting with a lowercase character

Implementation

String get varName => isBlank
    ? ''
    : (this!.length == 1)
        ? this!.toLowerCase()
        : '${this![0].toLowerCase()}${camelCase.substring(1)}';