capitalize method

String capitalize()

Implementation

String capitalize() => isEmpty ? this : this[0].toUpperCase() + substring(1);