customUpdate static method

Future<int> customUpdate(
  1. String table,
  2. CacheDBBaseModel model, {
  3. String? columnName,
  4. String? columnValue,
})

Implementation

static Future<int> customUpdate(String table, CacheDBBaseModel model,
        {String? columnName, String? columnValue}) async =>
    await _db!.update(
      table,
      model.toMap(),
      where: '$columnName = ?',
      whereArgs: [columnValue],
    );