truncate<T extends Model> static method
Deletes all records in table.
Implementation
static Future<bool> truncate<T extends Model>() async {
try {
await _database.delete(_getTableName<T>());
return true;
} catch (e) {
print('SQLite truncate error: $e');
return false;
}
}