CPListTemplate constructor
CPListTemplate({
- String? title,
- required List<
CPListSection> sections, - List<
String> ? emptyViewTitleVariants, - List<
String> ? emptyViewSubtitleVariants, - bool showsTabBadge = false,
- required String systemIcon,
- CPBarButton? backButton,
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,
this.showsTabBadge = false,
required this.systemIcon,
this.backButton,
});