capitalizeRestUnchanged method

String capitalizeRestUnchanged()

Capitalize the first character of the string and leaves the rest as is. In a future release will be called only capitalize

Implementation

String capitalizeRestUnchanged() => [
      if (isNotEmpty) this[0].toUpperCase(),
      if (length > 1) substring(1, length)
    ].join();