diff --git a/packages/flutter/lib/src/material/dropdown.dart b/packages/flutter/lib/src/material/dropdown.dart index 21326190dae..017c5cad0bd 100644 --- a/packages/flutter/lib/src/material/dropdown.dart +++ b/packages/flutter/lib/src/material/dropdown.dart @@ -1555,6 +1555,8 @@ class _DropdownButtonState extends State> with WidgetsBindi /// pass a [GlobalKey] to the constructor and use [GlobalKey.currentState] to /// save or reset the form field. /// +/// The `value` parameter maps to [FormField.initialValue]. +/// /// See also: /// /// * [DropdownButton], which is the underlying text field without the [Form] diff --git a/packages/flutter/lib/src/widgets/form.dart b/packages/flutter/lib/src/widgets/form.dart index 657bb04280b..2211523a4a6 100644 --- a/packages/flutter/lib/src/widgets/form.dart +++ b/packages/flutter/lib/src/widgets/form.dart @@ -445,6 +445,9 @@ class FormField extends StatefulWidget { final FormFieldBuilder builder; /// An optional value to initialize the form field to, or null otherwise. + /// + /// This is called `value` in the [DropdownButtonFormField] constructor to be + /// consistent with [DropdownButton]. final T? initialValue; /// Whether the form is able to receive user input.