EscapeString extension

Provides an escape extension method on String.

on

Methods

escape({QuoteType quotes = QuoteType.single, bool ascii = true}) String

Available on String, provided by the EscapeString extension

Escapes a String such that it can be used as a string literal in generated code.