Message class
A rich response message.
- Inheritance
- Annotations
Constructors
-
Message({DialogText text, DialogImage image, QuickReplies quickReplies, DialogCard card, Map<
String, dynamic> payload, List<SimpleResponse> simpleResponses, BasicCard basicCard, List<Suggestion> suggestions, LinkOutSuggestion linkOutSuggestion, ListSelect listSelect, CarouselSelect carouselSelect, Map<String, dynamic> browseCarouselCard, Map<String, dynamic> tableCard, Map<String, dynamic> mediaContent}) - A rich response message.
-
Message.fromJson(Map<
String, dynamic> json) -
factory
Properties
- basicCard → BasicCard
-
The basic card response for Actions on Google.
final
-
browseCarouselCard
→ Map<
String, dynamic> -
Browse carousel card for Actions on Google.
final
- card → DialogCard
-
The card response.
final
- carouselSelect → CarouselSelect
-
The carousel card response for Actions on Google.
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- image → DialogImage
-
The image response.
final
- linkOutSuggestion → LinkOutSuggestion
-
The link out suggestion chip for Actions on Google.
final
- listSelect → ListSelect
-
The list card response for Actions on Google.
final
-
mediaContent
→ Map<
String, dynamic> -
The media content card for Actions on Google.
final
-
payload
→ Map<
String, dynamic> -
A custom platform-specific response.
final
-
props
→ List<
Object> -
The list of properies that will be used to determine whether
two instances are equal.
read-only, override
- quickReplies → QuickReplies
-
The quick replies response.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
-
simpleResponses
→ List<
SimpleResponse> -
The voice and text-only responses for Actions on Google.
final
- stringify → bool
-
If set to
true
, the toString method will be overridden to output this instance's props. [...]read-only, inherited -
suggestions
→ List<
Suggestion> -
The suggestion chips for Actions on Google.
final
-
tableCard
→ Map<
String, dynamic> -
Table card for Actions on Google.
final
- text → DialogText
-
The text response.
final
- type → MessageType
-
The type of the message received
read-only
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited