toHeaderCase method

String toHeaderCase()

Converts to a captialized word, dash separated string

example:

'hello world' -> 'Hello-World'

Implementation

String toHeaderCase() => _fixCase(ChangeCaseType.header);