onDestructiveMigration property

FutureOr<void> Function(Database database)? onDestructiveMigration
final

Fired after the database has been recreated by a destructive migration, as there was no migration from its version to the current one. All actions are run within a single transaction.

Implementation

final FutureOr<void> Function(Database database)? onDestructiveMigration;