startsAndEndsWith function

bool startsAndEndsWith(
  1. String string,
  2. String delimiter
)

Returns true if this string starts and ends with the same given string If whitespaces can be present is better to execute first a trim() call.

Implementation

bool startsAndEndsWith(String string, String delimiter) =>
    string.startsAndEndsWith(delimiter);