AuthDropdownField class
A field for capturing dropdown selections in a Flutter form.
Extends AuthField.
Constructors
-
AuthDropdownField({required String name, required List<
String> items, required dynamic onChanged(String?), InputDecoration? dropdownDecoration, EdgeInsets padding = const EdgeInsets.all(8.0), TextStyle? textStyle, Icon icon = const Icon(Icons.keyboard_arrow_down), required dynamic value}) - Constructs an AuthDropdownField object.
Properties
- dropdownDecoration → InputDecoration?
-
The decoration for the dropdown.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Icon
-
The icon to be displayed with the dropdown.
final
-
items
→ List<
String> -
The list of items for the dropdown.
final
- name → String
-
The name of the field.
finalinherited
- onChanged → dynamic Function(String?)
-
A callback function triggered when the dropdown value changes.
final
- onValueChanged → (dynamic Function(dynamic)?)
-
A callback function triggered when the value of the field changes.
finalinherited
- padding → EdgeInsets
-
The padding around the dropdown.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedValue ↔ String?
-
The currently selected value in the dropdown.
getter/setter pair
- textStyle → TextStyle?
-
The text style for the dropdown.
final
- title → Widget?
-
The title widget of the field.
finalinherited
-
validators
↔ List<
String? Function(dynamic)> -
A list of validation functions for the field.
getter/setter pairinherited
- value ↔ dynamic
-
The initial value of the field.
getter/setter pairinherited
Methods
-
build(
BuildContext context, Function onValueChanged) → Widget -
Builds the widget representing the field.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited