diff --git a/packages/dropdown_button2/CHANGELOG.md b/packages/dropdown_button2/CHANGELOG.md index 7d87afa..38bbc15 100644 --- a/packages/dropdown_button2/CHANGELOG.md +++ b/packages/dropdown_button2/CHANGELOG.md @@ -2,6 +2,7 @@ - Fix errorStyle has no effect for DropdownButtonFormField2, closes #327. - DropdownRoutePage should dispose the created ScrollController [Flutter core]. +- Remove 'must be non-null' and 'must not be null' comments [Flutter core]. ## 3.0.0-beta.21 diff --git a/packages/dropdown_button2/lib/src/dropdown_button2.dart b/packages/dropdown_button2/lib/src/dropdown_button2.dart index f3093aa..b24a504 100644 --- a/packages/dropdown_button2/lib/src/dropdown_button2.dart +++ b/packages/dropdown_button2/lib/src/dropdown_button2.dart @@ -304,7 +304,7 @@ class DropdownButton2 extends StatefulWidget { /// Defines how the hint or the selected item is positioned within the button. /// - /// This property must not be null. It defaults to [AlignmentDirectional.centerStart]. + /// Defaults to [AlignmentDirectional.centerStart]. /// /// See also: /// @@ -931,9 +931,6 @@ class DropdownButtonFormField2 extends FormField { /// For a description of the `onSaved`, `validator`, or `autovalidateMode` /// parameters, see [FormField]. For the rest (other than [decoration]), see /// [DropdownButton2]. - /// - /// The `items`, `elevation`, `iconSize`, `isDense`, `isExpanded`, - /// `autofocus`, and `decoration` parameters must not be null. DropdownButtonFormField2({ super.key, required List>? items,