findIn method

  1. @override
String? findIn(
  1. String directoryPath
)
override

Implementation

@override
String? findIn(String directoryPath) {
  final result = super.fileWithin(PubspecLock.fileName, directoryPath);

  // this is the correct approach for workspaces, but if ANY packages depend
  // on Flutter, then all tools will resolve as Flutter.
  // if (result == null) {
  //   return super.nearest(PubspecLock.fileName);
  // }

  return result;
}