formalize property

String get formalize

formalizes the string by capitalizing the first letter of each word and lowercasing the rest

not camel case, but more like a title case

Implementation

String get formalize => split("_")
    .map((String e) => e[0].toUpperCase() + e.substring(1).toLowerCase())
    .join(" ");