CustomPicker constructor
const
CustomPicker({
- Key? key,
- required List<
int> selected, - required ValueChanged<
List< onChanged,int> > - ValueChanged<
List< ? handleChange,int> > - VoidCallback? onCancel,
- double verticalOffset = 0,
- bool below = true,
- required List<
List> list, - List<
bool> ? optionLoop, - EdgeInsetsGeometry contentPadding = const EdgeInsets.all(0),
- double popupHeight = 400,
- Color divColor = const Color(0xFFB9B6B6),
- List<
int> ? wtList, - BoxDecoration widDecoration = const BoxDecoration(),
- List<
BoxDecoration> childDecoration = const [], - double widHeight = 40,
- bool yesNo = false,
- EdgeInsets? popUpMargin,
- Color? popUpSelColor,
- Decoration? popUpDecoration,
- List<
TextStyle> ? popUpTextStyle, - List<
TextStyle> ? widTextStyle,
Implementation
const CustomPicker({
Key? key,
required this.selected,
required this.onChanged,
this.handleChange,
this.onCancel,
this.verticalOffset = 0,
this.below = true,
required this.list,
this.optionLoop,
this.contentPadding = const EdgeInsets.all(0),
this.popupHeight = 400,
this.divColor = const Color(0xFFB9B6B6),
this.wtList,
this.widDecoration = const BoxDecoration(),
this.childDecoration = const [],
this.widHeight = 40,
this.yesNo = false,
this.popUpMargin,
this.popUpSelColor,
this.popUpDecoration,
this.popUpTextStyle,
this.widTextStyle,
}) : assert((list.length == selected.length &&
selected.length == childDecoration.length) ||
(list.length == selected.length &&
(childDecoration == null || childDecoration.length == 0)));