title: How to check if a controller has put with Flutter GetX?
body: <p>I have the following code:</p>
  <pre><code>Get.put(DbController(HabitDao(AppDb())));
  </code></pre>
  <p>When I hot reload my app, I get the following error:</p>
  <pre><code>&quot;WARNING (moor): It looks like you've created the database class AppDb multiple times. When these two databases use the same QueryExecutor, race conditions will occur and might corrupt the database.&quot;
  </code></pre>
  <p>I need to check if I have put a <code>DbController</code> before creating a new <code>AppDb</code> instance. I never had this problem while using the Provider package.</p>
  <p>What is the best practice to solve this?</p>