capitalize method

String? capitalize()

Implementation

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