update method

Future update(
  1. dynamic id
)

Implementation

Future update(id) async {
  final db = await database;

  return await db.update(
    table,
    toMap(),
    where: 'id = ?',
    whereArgs: [id],
  );
}