Returns input surrounded by single quotes and with all '$'s escaped.
input
String singleQuote(String input) { return "'${input.replaceAll(r'$', r'\$')}'"; }