DartProject.fromPath constructor

DartProject.fromPath(
  1. String path
)

Creates a DartProject from a directory path.

The directory should contain the following top-level items:

  • app.so, for an AOT build (as built by the Flutter tool)
  • flutter_assets (as built by the Flutter tool)
  • icudtl.dat (provided as a resource by the Flutter tool)

The path can either be absolute, or relative to the directory containing the running executable.

Implementation

factory DartProject.fromPath(String path) => DartProject(
      aotLibraryPath: p.join(path, 'app.so'),
      assetsPath: p.join(path, 'flutter_assets'),
      icuDataPath: p.join(path, 'icudtl.dat'),
    );