quote static method

String quote(
  1. String contents
)

Returns contents with characters that are meaningful in globs backslash-escaped.

Implementation

static String quote(String contents) =>
    contents.replaceAllMapped(_quoteRegExp, (match) => '\\${match[0]}');