getNext method
Returns the next migration after the currentVersion
.
Implementation
@override
Future<Migration?> getNext(String currentVersion) async => _migrations
.where((m) => m.version.compareTo(currentVersion) > 0)
.firstOrNull;
Returns the next migration after the currentVersion
.
@override
Future<Migration?> getNext(String currentVersion) async => _migrations
.where((m) => m.version.compareTo(currentVersion) > 0)
.firstOrNull;