snake property

String snake

Returns this converted to snake_case, where words are seperated by underscore.

Examples:

'simple'   -> 'simple',
'twoWords' -> 'two_words'
'FirstBig' -> 'first_big'

Whitespace is not considered or affected.

Implementation

String get snake => _fixCase('_');