dart-lang / core

This repository is home to core Dart packages.
https://pub.dev/publishers/dart.dev
BSD 3-Clause "New" or "Revised" License
19 stars 7 forks source link

remove nullability from `ArgParser.addFlag({bool? defaultsTo = false})` #98

Open devoncarew opened 8 months ago

devoncarew commented 8 months ago

We should remove nullability from ArgParser.addFlag({bool? defaultsTo = false}) - just support addFlag({bool defaultsTo = false}).

For context: https://github.com/dart-lang/args/pull/248#issuecomment-2005002111.

This API change would be breaking.