capitalize method

String capitalize()

Implementation

String capitalize() => isNotEmpty ? '${this[0].toUpperCase()}${substring(1)}' : this;