FDropdownMenu<T> constructor
const
FDropdownMenu<T> ({
- Key? key,
- required List<
FDropdownEntry< entries,T> > - FTextStyle? entryTextStyle,
- String? hintText,
- FTextStyle? hintStyle,
- String? labelText,
- FTextStyle? labelStyle,
- T? initialSelection,
- required void onSelected(
- dynamic value
- bool enabled = true,
- TextEditingController? controller,
- FColorI fSelectColor = FColor.lightPrimaryPurple,
- FColorI fFillColor = FColor.noColor,
- FColorI fFillDisabledColor = FColor.lightPaleGray,
- FColorI fDisabledBorderColor = FColor.lightMidGray,
- FTextStyle? disabledStyle,
- String? validator(
- dynamic value
- bool isMandatory = false,
- FTextStyle? mandatoryStyle,
- FTextStyle? mandatoryStyleDisabled,
Implementation
const FDropdownMenu({
Key? key,
required this.entries,
this.entryTextStyle,
this.menuBackgroundColor,
this.hintText,
this.hintStyle,
this.labelText,
this.labelStyle,
this.initialSelection,
required this.onSelected,
this.enabled = true,
this.controller,
this.fSelectColor = FColor.lightPrimaryPurple,
this.fFillColor = FColor.noColor,
this.fFillDisabledColor = FColor.lightPaleGray,
this.fDisabledBorderColor = FColor.lightMidGray,
this.disabledStyle,
this.validator,
this.isMandatory = false,
this.mandatoryStyle,
this.mandatoryStyleDisabled,
}) : super(key: key);