Skip to content

Commit e93fb69

Browse files
authored
Merge pull request #346 from AhmedLSayed9/remove_must_not_be_null_comments
Remove 'must be non-null' and 'must not be null' comments [Flutter core]
2 parents 2ac1d9a + 4ebabd3 commit e93fb69

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/dropdown_button2/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Fix errorStyle has no effect for DropdownButtonFormField2, closes #327.
44
- DropdownRoutePage should dispose the created ScrollController [Flutter core].
5+
- Remove 'must be non-null' and 'must not be null' comments [Flutter core].
56

67
## 3.0.0-beta.21
78

packages/dropdown_button2/lib/src/dropdown_button2.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class DropdownButton2<T> extends StatefulWidget {
304304

305305
/// Defines how the hint or the selected item is positioned within the button.
306306
///
307-
/// This property must not be null. It defaults to [AlignmentDirectional.centerStart].
307+
/// Defaults to [AlignmentDirectional.centerStart].
308308
///
309309
/// See also:
310310
///
@@ -931,9 +931,6 @@ class DropdownButtonFormField2<T> extends FormField<T> {
931931
/// For a description of the `onSaved`, `validator`, or `autovalidateMode`
932932
/// parameters, see [FormField]. For the rest (other than [decoration]), see
933933
/// [DropdownButton2].
934-
///
935-
/// The `items`, `elevation`, `iconSize`, `isDense`, `isExpanded`,
936-
/// `autofocus`, and `decoration` parameters must not be null.
937934
DropdownButtonFormField2({
938935
super.key,
939936
required List<DropdownItem<T>>? items,

0 commit comments

Comments
 (0)