readFetchHistory method
dynamic
readFetchHistory(
- String? model
)
Implementation
readFetchHistory(String? model) async {
Database db = await instance.database;
var rec = await db
.rawQuery('select * from FetchHistory where TableName=?', [model]);
if (rec.length > 0) {
return FetchHistory(
rec.first['RecordId'] as int,
rec.first['TableName'] as String,
rec.first['Pages'] as String,
rec.first['TotalRecord'] as int,
rec.first['Success'] as int,
);
} else {
//return null;
return FetchHistory(null, null, null, 0, null); //added
// return FetchHistory(0,"SubjectInfo","100",0,1);
}
}