CoolList<T> constructor
CoolList<T> ({
- required List<
T> items, - required Widget widgetBuilder(
- T item
- String msgOnEmpty = 'Empty List',
- String? title,
- bool addDivider = true,
- bool startWithDivider = true,
- double gap = 0,
- bool shrinkWrap = false,
- Color dividerColor = Colors.grey,
- Widget? titleWidget,
- ListReOrderHelper<
T> ? listReOrderHelper, - Key? key,
Implementation
CoolList({
required this.items,
required this.widgetBuilder,
this.msgOnEmpty = 'Empty List',
this.title,
this.addDivider = true,
this.startWithDivider = true,
this.gap = 0,
this.shrinkWrap = false,
this.dividerColor = Colors.grey,
this.titleWidget,
this.listReOrderHelper,
super.key,
});