quotedStr function

String quotedStr(
  1. String s
)

Implementation

String quotedStr(String s) {
  final escaped = s.replaceAll("'", "''");
  return "'$escaped'";
}