insertListChat static method
dynamic
insertListChat(
{ - required ListChat data,
})
Implementation
static insertListChat({required ListChat data}) async {
Database db = await connect();
await db.transaction((txn) async {
await txn.rawInsert('INSERT INTO ListChat(id,read,person_name,person_image,updated,chatType,token,groupToken,time_zone) VALUES(${data.id},${data.read},"${data.person?.name}","${data.person?.pathImage}",${data.updated!.millisecondsSinceEpoch},0,"${data.token}","${data.groupToken}",${data.timezone})');
});
// await db.close();
}