quoteWithDoubleQuotes function

String quoteWithDoubleQuotes(
  1. String string
)

Escapes and quotes a String using double quotes.

Implementation

String quoteWithDoubleQuotes(String string) =>
    "\"${string.replaceAll("\"", "\"\"")}\"";