GoogleAppsCardV1Grid class

Displays a grid with a collection of items.

Items can only include text or images. For responsive columns, or to include more than text or images, use Columns. For an example in Google Chat apps, see Grid. A grid supports any number of columns and items. The number of rows is determined by items divided by columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): For example, the following JSON creates a 2 column grid with a single item: "grid": { "title": "A fine collection of items", "columnCount": 2, "borderStyle": { "type": "STROKE", "cornerRadius": 4 }, "items": [ { "image": { "imageUri": "https://www.example.com/image.png", "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" } }, "title": "An item", "textAlignment": "CENTER" } ], "onClick": { "openLink": { "url": "https://www.example.com" } } }

Properties

borderStyle GoogleAppsCardV1BorderStyle?
The border style to apply to each grid item.
getter/setter pair
columnCount int?
The number of columns to display in the grid.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
items List<GoogleAppsCardV1GridItem>?
The items to display in the grid.
getter/setter pair
onClick GoogleAppsCardV1OnClick?
This callback is reused by each individual grid item, but with the item's identifier and index in the items list added to the callback's parameters.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
The text that displays in the grid header.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited