toCapitalize method

String? toCapitalize({
  1. bool firstOnly = false,
})

Capitalize each word inside string Example: your name => Your Name, your name => Your name

If First Only is true, the only letter get uppercase is the first letter

Implementation

String? toCapitalize({bool firstOnly = false}) =>
    TransformUtils.capitalize(this, firstOnly: firstOnly);