dart pub remove
Remove is one of the commands of the pub tool.
$ dart pub remove <package> [options]
This command removes the specified package from the pubspec as a dependency.
For example, the following command is equivalent to
and then calling
dart pub get:
$ dart pub remove http
For options that apply to all pub commands, see Global options.
- Uses cached packages instead of the network.
- Reports which dependencies would change, but doesn't change any.
- Precompiles executables in immediate dependencies (true by default).