delete method

  1. @override
Future<void> delete()
override

Deletes the whole database. The database needs to be created again after this.

Implementation

@override
Future<void> delete() async {
  // database?.path is null on web
  await _collection.deleteDatabase(
    database?.path ?? name,
    sqfliteFactory ?? idbFactory,
  );
}