SelectDefaultDynamic<T> constructor
SelectDefaultDynamic<T> ({
- required List<
T> options, - required String getText(
- T?
- BuildContext? context,
- DropDownSize? size,
- String getIcons(
- T?
- bool inlineLabel = false,
- Color avatarColor = RothkoColor.kPrimaryBase,
- bool hasIcons = false,
- AvatarSize avatarSize = AvatarSize.normal,
- bool hasAvatarIcons = false,
- bool? networkIcons = false,
- void onChanged(
- T?
- AutovalidateMode? autovalidateMode,
- Widget labelAction = const SizedBox(),
- T? selected,
- required String hintText,
- bool? focused = false,
- bool? readonly = false,
- dynamic onTap()?,
- bool? enabled = true,
- bool showTooltip = false,
- String? toolTipText = '',
- dynamic tooltipAction()?,
- Widget suffixIcon = const Icon(Icons.arrow_drop_down_rounded),
- required String labelText,
- Color? labelTextColor,
- String? validator(
- T?
- double? labelTextSize,
- BorderSide? customBorder,
- double? width,
Implementation
SelectDefaultDynamic(
{required this.options,
required this.getText,
this.context,
this.size,
this.getIcons,
this.inlineLabel = false,
this.avatarColor = RothkoColor.kPrimaryBase,
this.hasIcons = false,
this.avatarSize = AvatarSize.normal,
this.hasAvatarIcons = false,
this.networkIcons = false,
this.onChanged,
this.autovalidateMode,
this.labelAction = const SizedBox(),
this.selected,
required this.hintText,
this.focused = false,
this.readonly = false,
this.onTap,
this.enabled = true,
this.showTooltip = false,
this.toolTipText = '',
this.tooltipAction,
this.suffixIcon = const Icon(
Icons.arrow_drop_down_rounded,
),
required this.labelText,
this.labelTextColor,
this.validator,
this.labelTextSize,
this.customBorder,
this.width});