truncate method
Implementation
Future<int> truncate() async {
try {
final query = """
DELETE FROM ${this._table};
DELETE FROM sqlite_sequence WHERE name = ${this._table};
""";
// fetch result
return await this._db!.rawDelete(query);
} catch (e) {
print(e);
}
return 0;
}