GoogleAppsCardV1DecoratedText class

A widget that displays text with optional decorations such as a label above or below the text, an icon in front of the text, a selection widget, or a button after the text.

For an example in Google Chat apps, see Display text with decorative text. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):

Constructors

GoogleAppsCardV1DecoratedText.new({String? bottomLabel, GoogleAppsCardV1TextParagraph? bottomLabelText, GoogleAppsCardV1Button? button, GoogleAppsCardV1TextParagraph? contentText, GoogleAppsCardV1Icon? endIcon, GoogleAppsCardV1Icon? icon, GoogleAppsCardV1OnClick? onClick, GoogleAppsCardV1Icon? startIcon, String? startIconVerticalAlignment, GoogleAppsCardV1SwitchControl? switchControl, String? text, String? topLabel, GoogleAppsCardV1TextParagraph? topLabelText, bool? wrapText})
GoogleAppsCardV1DecoratedText.fromJson(Map json_)

Properties

bottomLabel String?
The text that appears below text.
getter/setter pair
bottomLabelText GoogleAppsCardV1TextParagraph?
TextParagraph equivalent of bottom_label.
getter/setter pair
button GoogleAppsCardV1Button?
A button that a user can click to trigger an action.
getter/setter pair
contentText GoogleAppsCardV1TextParagraph?
TextParagraph equivalent of text.
getter/setter pair
endIcon GoogleAppsCardV1Icon?
An icon displayed after the text.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon GoogleAppsCardV1Icon?
Deprecated in favor of startIcon.
getter/setter pair
onClick GoogleAppsCardV1OnClick?
This action is triggered when users click topLabel or bottomLabel.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startIcon GoogleAppsCardV1Icon?
The icon displayed in front of the text.
getter/setter pair
startIconVerticalAlignment String?
Vertical alignment of the start icon.
getter/setter pair
switchControl GoogleAppsCardV1SwitchControl?
A switch widget that a user can click to change its state and trigger an action.
getter/setter pair
text String?
The primary text.
getter/setter pair
topLabel String?
The text that appears above text.
getter/setter pair
topLabelText GoogleAppsCardV1TextParagraph?
TextParagraph equivalent of top_label.
getter/setter pair
wrapText bool?
The wrap text setting.
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