CPGridTemplate constructor

CPGridTemplate({
  1. required String title,
  2. required List<CPGridButton> buttons,
})

Creates CPGridTemplate in order to display a grid of items as buttons. When creating the grid template, provide an array of CPGridButton objects. Each button must contain a title that is shown in the grid template's navigation bar.

Implementation

CPGridTemplate({
  required this.title,
  required this.buttons,
});