getNext method

  1. @override
Future<Migration?> getNext(
  1. String currentVersion
)
override

Returns the next migration after the currentVersion.

Implementation

@override
Future<Migration?> getNext(String currentVersion) async => _migrations
    .where((m) => m.version.compareTo(currentVersion) > 0)
    .firstOrNull;