insert abstract method

Future<int> insert(
  1. String table,
  2. Map<String, Object?> values,
  3. {String? nullColumnHack,
  4. ConflictAlgorithm? conflictAlgorithm}

This method helps insert a map of values into the specified table and returns the id of the last inserted row.

   var value = {
     'age': 18,
     'name': 'value'
   int id = await db.insert(
     conflictAlgorithm: ConflictAlgorithm.replace,

0 could be returned for some specific conflict algorithms if not inserted.


Future<int> insert(String table, Map<String, Object?> values,
    {String? nullColumnHack, ConflictAlgorithm? conflictAlgorithm});