isEscape static method

bool isEscape(
  1. String c1,
  2. String c2
)

Gets a value indicating whether the current char c1 is an escape modifier and the second is in the list of chars to escape.

Implementation

static bool isEscape(String c1, String c2) {
  return c1 == '\\' && CHARS_TO_ESCAPE.contains(c2);
}