upTo static method
Returns the left most part of a string upto,
but not including, the delimiter
If there is no delimiter
found then the entire string
is returned.
Implementation
static String upTo(String string, String delimiter) =>
Part.upTo(string, delimiter);