update static method

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

Implementation

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