migrationsUntil method

Map<int, Migration> migrationsUntil([
  1. int? versionNumber
])

Migrations before and including a version

versionNumber defaults to version

Implementation

Map<int, Migration> migrationsUntil([int? versionNumber]) {
  return migrationByVersion
    ..removeWhere((version, _) {
      return version > (versionNumber ?? version);
    });
}