firstWord function

String? firstWord(
  1. String source
)

Gets the first full word from the beginning of the text delimited by a space inp: blah

Implementation

String? firstWord(String source) {
  return regEx1(r"([^\s]+)", source);
}