existsIn method

bool existsIn(
  1. File file
)

Whether there is an entry with name in file.

If the file does not exist, this will return false.

Implementation

bool existsIn(File file) {
  if (!file.existsSync()) return false;
  final content = file.readAsStringSync();
  return content.contains(_startComment) && content.contains(_endComment);
}