resolveNativeDir function

Directory? resolveNativeDir(
  1. String packageName
)

Resolves the full path to the native directory within the package Returns null if either package or directory cannot be resolved

Implementation

Directory? resolveNativeDir(String packageName) {
  final packageDir = resolvePackageBase(packageName);
  if (packageDir == null) return null;

  final nativePath = path.join(packageDir.path, 'src', 'native');
  return Directory(nativePath);
}