update method
Implementation
Future<List<Map<String, dynamic>>> update() async {
List<Map<String, dynamic>> result = [];
final res = database != null ? await database!.update(data: _data, tableName: table, where: _lastQuery.replaceAll('WHERE', '')) : await DatabaseConfig.update(data: _data, tableName: table, where: _lastQuery.replaceAll('WHERE', ''));
if (res) {
result.add({'status': 'success', 'message': 'data has been Updated'});
}
return result;
}