diff --git a/packages/flutter/lib/src/material/dropdown_menu.dart b/packages/flutter/lib/src/material/dropdown_menu.dart index 30cd33fea17..d38bc0ebb0e 100644 --- a/packages/flutter/lib/src/material/dropdown_menu.dart +++ b/packages/flutter/lib/src/material/dropdown_menu.dart @@ -427,9 +427,23 @@ class DropdownMenu extends StatefulWidget { /// If null, this widget will create its own [TextEditingController]. final TextEditingController? controller; - /// The value used to for an initial selection. + /// The value used for an initial selection. + /// + /// This property sets the initial value of the dropdown menu when the widget + /// is first created. If the value matches one of the [dropdownMenuEntries], + /// the corresponding label will be displayed in the text field. + /// + /// Setting this to null does not clear the text field. + /// + /// To programmatically clear the text field, use a [TextEditingController] + /// and call [TextEditingController.clear] on it. /// /// Defaults to null. + /// + /// See also: + /// + /// * [controller], which is required to programmatically clear or modify + /// the text field content. final T? initialSelection; /// The callback is called when a selection is made.