exists method

bool exists(
  1. String name
)

true when a migration named name is in the folder, at any time

Implementation

bool exists(String name) {
  for (File file in _files()) {
    RegExpMatch? match = _name.firstMatch(file.uri.pathSegments.last);
    if (match != null && match.group(1) == name) return true;
  }
  return false;
}