properCase function

String? properCase(
  1. String? source
)

Implementation

String? properCase(String? source) =>
    source?.split(" ").map(capitalize).join(" ");