title: Flutter saving sqflite database to downloads directory
body: <p>The scenario is that the user needs to be able to save/backup their data. So that they can restore their data if ever needed in the future. Or even transfer data from one phone to another.</p>
  
  <ul>
  <li><strong>Users data is stored in a sqflite database.</strong></li>
  </ul>
  
  <p>I want to avoid using any third party account set up like linking to google drive or something. Purely want the user to be able to download a file with their data in it.</p>
  
  <p>I'm unsure on what option is best or what is even possible to do in Flutter. </p>
  
  <p>Currently I'm thinking ideally I would want a button that saves the whole database to the users downloads directory. From there the user can do what they want with it.</p>
  
  <ul>
  <li><strong>Is it possible to save a sqflite database to the phones downloads directory?</strong></li>
  </ul>
  
  <p>Or would it have to converted into another format before save?</p>
  
  <p>If this were to be possible, is it also possible to replace the apps current db with a file that the user selects (their backed up db)?</p>