SingleLine<T>.dropdown constructor
const
SingleLine<T>.dropdown ({
- Key? key,
- EdgeInsets? padding,
- required String? name,
- required ValueChanged<
T> ? onDropdownChanged, - required List<
DropdownMenuItem< ? dropdownItems,T> > - T? dropdownValue,
- TextStyle? nameTxtStyle,
- String? centerTxt,
- TextStyle? centerTxtStyle,
- Widget? centerWidget,
- Widget? nameWidget,
- Widget? leftView,
- IconData? iconData,
- String? iconUrl,
- TouchTap? onTap,
- bool rightShow = false,
- bool? isPrimary,
- String? rightTxt,
- TextStyle? rightTxtStyle,
- String? url,
- num? urlSize,
- Decoration? decoration,
- num? minHeight,
- num? iconHeight,
- num? nameLeftPadding,
- num? nameRightPadding,
- Color? backgroundColor,
- IconData? rightIconData,
- num? leftRight,
- num? topBottom,
- num? radius,
Implementation
const SingleLine.dropdown({
Key? key,
this.padding,
required this.name,
required this.onDropdownChanged,
required this.dropdownItems,
this.dropdownValue,
this.nameTxtStyle,
this.centerTxt,
this.centerTxtStyle,
this.centerWidget,
this.nameWidget,
this.leftView,
this.iconData,
this.iconUrl,
this.onTap,
this.rightShow = false,
this.isPrimary,
this.rightTxt,
this.rightTxtStyle,
this.url,
this.urlSize,
this.decoration,
this.minHeight,
this.iconHeight,
this.nameLeftPadding,
this.nameRightPadding,
this.backgroundColor,
this.rightIconData,
this.leftRight,
this.topBottom,
this.radius,
}) : assert(name == null || nameWidget == null),
assert(centerTxt == null || centerWidget == null),
this.rightWidget = null,
super(key: key);