update method
Implementation
Future<int> update(
StorageOperator operator, String where, List whereArgs) async {
Database db = await this.db;
int id;
try {
id = await db.update(this.tableName, operator.toMap(),
where: where, whereArgs: whereArgs);
} catch (e) {
await this.close();
throw new Exception(e);
}
return id;
}