capitalCase property

String get capitalCase

Implementation

String get capitalCase => this
    .replaceAll(RegExp(' +'), ' ')
    .split(" ")
    .map((str) => str.camelCase)
    .join(" ");