withFirstCharInCaps function

String withFirstCharInCaps(
  1. String str
)

Implementation

String withFirstCharInCaps(String str) =>
    "${str[0].toUpperCase()}${str.substring(1)}";