toTitleCase method

String toTitleCase()

Converts to a space separated string with the

first character of every word uppercased except

  • small words
  • urls
  • words that contain capital letters

example:

'hello world' -> 'Hello World'

Implementation

String toTitleCase() => _fixCase(ChangeCaseType.title);