capitalize function

String capitalize(
  1. String s
)

Implementation

String capitalize(String s) => s[0].toUpperCase() + s.substring(1);