uncapitalize function Null safety

String uncapitalize(
  1. String source
)

Implementation

String uncapitalize(String source) {
  if (source.isEmpty) {
    return source;
  } else {
    return source[0].toLowerCase() + source.substring(1);
  }
}