migrationsSince method

List<Migration> migrationsSince([
  1. int? versionNumber
])

Migrations after a version

versionNumber defaults to version

Implementation

List<Migration> migrationsSince([int? versionNumber]) {
  final number = versionNumber ?? version;
  final validMigrations = migrations.where((m) => m.version > number).toList();
  validMigrations.sort((a, b) => a.version.compareTo(b.version));
  return validMigrations;
}