read method

  1. @override
Stream<Migration> read({
  1. String? afterVersion,
})
override

Streams the migrations ordered by version, ascending. If afterVersion is passed, all migrations with versions less or equal to it will be skipped.

Implementation

@override
Stream<Migration> read({String? afterVersion}) =>
    Stream.fromIterable(_migrations.where((_) =>
        afterVersion == null || _.version.compareTo(afterVersion) > 0));