        '--causal_async_stacks',
 -      '--packages=$packagesPath',
      ]..addAll(additionalArgs);
- 
+
      final String snapshotterPath = getSnapshotterPath(snapshotType);
 @@ -194,7 +192,6 @@ class AOTSnapshotter {
      final SnapshotType snapshotType = SnapshotType(platform, buildMode);

       additionalArgs: genSnapshotArgs,
     );
     if (genSnapshotExitCode != 0) {

--- a/packages/flutter_tools/lib/src/base/build.dart
+++ b/packages/flutter_tools/lib/src/base/build.dart
@@ -46,13 +46,11 @@ class GenSnapshot {

   Future<int> run({
     @required SnapshotType snapshotType,
-    @required String packagesPath,
