MigrationStrategy constructor Null safety

MigrationStrategy(
  1. {OnCreate onCreate = _defaultOnCreate,
  2. OnUpgrade onUpgrade = _defaultOnUpdate,
  3. OnBeforeOpen? beforeOpen}
)

Construct a migration strategy from the provided onCreate and onUpgrade methods.

Implementation

MigrationStrategy({
  this.onCreate = _defaultOnCreate,
  this.onUpgrade = _defaultOnUpdate,
  this.beforeOpen,
});