stepByStepHelper static method

  1. @Deprecated('Re-generate code so that it uses `VersionedSchema.stepByStepHelper`')
OnUpgrade stepByStepHelper({
  1. required MigrationStepWithVersion step,
})

A helper used by drift internally to implement the step-by-step migration feature.

This method implements an OnUpgrade callback by repeatedly invoking step with the current version, assuming that step will perform an upgrade from that version to the version returned by the callback.

Implementation

@Deprecated(
    'Re-generate code so that it uses `VersionedSchema.stepByStepHelper`')
static OnUpgrade stepByStepHelper({
  required MigrationStepWithVersion step,
}) {
  return VersionedSchema.stepByStepHelper(step: step);
}