Skip to content

Commit 5a0d184

Browse files
authored
Update pub-upgrade.md
Removing `dart pub upgrade --null-safety`. After Dart 3.0.0, this is no longer relevant, and the flag has been removed.
1 parent 3137c33 commit 5a0d184

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/content/tools/pub/cmd/pub-upgrade.md

-14
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,6 @@ By default, pub precompiles executables
123123
in immediate dependencies (`--precompile`).
124124
To prevent precompilation, use `--no-precompile`.
125125

126-
### `--null-safety`
127-
128-
Gets the packages that
129-
[`dart pub outdated --mode=null-safety`][`dart pub outdated`]
130-
lists as _resolvable_,
131-
ignoring any upper-bound constraint in the `pubspec.yaml` file.
132-
Also updates `pubspec.yaml` with the new constraints.
133-
This command is similar to `--major-versions`.
134-
135-
:::tip
136-
Commit the `pubspec.yaml` file before running this command,
137-
so that you can undo the changes if necessary.
138-
:::
139-
140126
### `--major-versions`
141127

142128
Gets the packages that [`dart pub outdated`][] lists as _resolvable_,

0 commit comments

Comments
 (0)