5. Insert a Dog into the database

Now that you have a database with a table suitable for storing information
about various dogs, it’s time to read and write data.

First, insert a Dog into the dogs table. This involves two steps:

Convert the Dog into a Map

Use the insert() method to store the
Map in the dogs table.

6. Retrieve the list of Dogs

Now that a Dog is stored in the database, query the database
for a specific dog or a list of all dogs. This involves two steps:

Run a query against the dogs table. This returns a List<Map>.

Convert the List<Map> into a List<Dog>.

7. Update a Dog in the database

After inserting information into the database,
you might want to update that information at a later time.
You can do this by using the update()
method from the sqflite library.