dart migrate
Perform null safety migration on a project
Options
Name | Description |
---|---|
-h, --help | Print this usage information |
-v, --verbose | Show additional command output |
--apply-changes | Apply the proposed null safety changes to the files on disk |
--ignore-errors | Attempt to perform null safety analysis even if the project has analysis errors |
--skip-import-check | Go ahead with migration even if some imported files have not yet been migrated |
--web-preview | Show and interactive preview of the proposed null safety changes in a browser window. (defaults to on) |
--no-web-preview | Do not show and interactive preview of the proposed null safety changes in a browser window. (defaults to off) |
--preview-hostname <host> | Run the preview server on the specified hostname. If not specified, 'localhost' is used. Use 'any' to specify IPv6.any or IPv4.any. (defaults to the 'localhost') |
--preview-port <port> | Run the preview server on the specified port. If not specified, dynamically allocate a port |
--summary <path> | Output a machine-readable summary of migration changes |
--ignore-exceptions | Attempt to perform null safety analysis even if exceptions occur |
--sdk-path <sdk-path> | The path to the Dart SDK |