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]) =>
    migrationByVersion..removeWhere((version, _) => version > (versionNumber ?? version));