deleteAll<T> method
Deletes all entities of the specified type from this Box.
Implementation
@override
Future deleteAll<T>([Type? type]) async {
var connection = await _openConnection;
var entitySupport = registry.lookup(type ?? T);
var tableName = _snakeCase(entitySupport.name);
return connection.execute('DELETE FROM "$tableName"');
}