widget method
Implementation
widget(context) => DropdownButton<T>(
items: items ??
itemsValue
?.map(
(v) => DropdownMenuItem<T>(
value: v,
child: Text(
v.toString(),
),
),
)
.toList(growable: false),
selectedItemBuilder: selectedItemBuilder,
value: value,
hint: hint,
disabledHint: disabledHint,
onChanged: onChanged,
onTap: onTap,
elevation: elevation ?? 8,
style: style?.value,
underline: underline,
icon: icon,
iconDisabledColor: iconDisabledColor,
iconEnabledColor: iconEnabledColor,
iconSize: iconSize ?? 24.0,
isDense: isDense ?? false,
isExpanded: isExpanded ?? false,
itemHeight: itemHeight ?? kMinInteractiveDimension,
focusColor: focusColor,
focusNode: focusNode,
autofocus: autofocus ?? false,
dropdownColor: dropdownColor,
menuMaxHeight: menuMaxHeight,
enableFeedback: enableFeedback,
alignment: alignment ?? AlignmentDirectional.centerStart,
borderRadius: borderRadius,
);