CPListTemplate constructor

CPListTemplate({
  1. String? title,
  2. required List<CPListSection> sections,
  3. List<String>? emptyViewTitleVariants,
  4. List<String>? emptyViewSubtitleVariants,
  5. bool showsTabBadge = false,
  6. required String systemIcon,
  7. 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,
});