MultiColumnListWidget constructor
MultiColumnListWidget({
- required List<
PickerEntity> ? items, - Color normalColor = const Color(0Xff4a4e59),
- Color selectedColor = const Color(0xff41bc6a),
- double maxHeight = 0,
- Color? backgroundColor,
- Color? selectedBackgroundColor,
- required int flex,
- int? focusedIndex,
- BrnOnEntityTap? singleListItemPick,
- OnSelectEntityInterceptor? onSelectEntityInterceptor,
Implementation
MultiColumnListWidget({
required this.items,
this.normalColor = const Color(0Xff4a4e59),
this.selectedColor = const Color(0xff41bc6a),
this.maxHeight = 0,
this.backgroundColor,
this.selectedBackgroundColor,
required this.flex,
this.focusedIndex,
this.singleListItemPick,
this.onSelectEntityInterceptor,
}) {
items ??= [];
items!.forEach((element) {
element.configRelationship();
});
currentListIndex = MultiColumnPickerUtil.getCurrentColumnIndex(
items!.isNotEmpty ? items![0] : null);
_selectedItems = items?.where((f) => f.isSelected).toList();
_selectedItems ??= [];
}