CPListTemplate constructor
CPListTemplate({
- String? title,
- required List<
CPListSection> sections, - List<
String> ? emptyViewTitleVariants, - List<
String> ? emptyViewSubtitleVariants, - String? tabTitle,
- bool showsTabBadge = false,
- String? systemIcon,
- VoidCallback? onPop,
- CPBarButton? backButton,
- String? id,
Creates CPListTemplate to display a list of items, grouped into one or more sections. Each section contains an array of list items — objects that is CPListItem
Consider that some vehicles limit the number of items that CPListTemplate displays.
Implementation
CPListTemplate({
this.title,
required this.sections,
this.emptyViewTitleVariants,
this.emptyViewSubtitleVariants,
super.tabTitle,
super.showsTabBadge = false,
super.systemIcon,
super.onPop,
this.backButton,
String? id,
}) : _elementId = id ?? const Uuid().v4();