title: Escaping single quotes and double quotes in a string in dart
body: <p>I am creating a basic chat application in flutter. It involves a Text Field where the user can enter any text and click on the send button.</p>
  
  <p>The application works fine for any string you enter in the text box except for the string containing quotes. I get a Database exception when trying to add that string to the sql database as the quotes are not escaped.</p>
  
  <p>Doing <code>replaceAll("'", "\'").replaceAll('"', "\'")</code> on a string works as i'm using double quotes in sql queries, but all the double quotes are now single quotes.</p>
  
  <p>Thanks for the help.</p>