firstWord method
Returns the first word of this string.
Implementation
String? firstWord() {
if (isEmpty) return null;
return words()?.firstOrNull;
}
Returns the first word of this string.
String? firstWord() {
if (isEmpty) return null;
return words()?.firstOrNull;
}