titleCase property

String get titleCase

get Title Case string

Implementation

String get titleCase => replaceAll(RegExp(' +'), ' ')
    .split(" ")
    .map((str) => str.toCapitalized())
    .join(" ");