upTo static method

String upTo(
  1. String string,
  2. String delimiter
)

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);