LiveChatMessage class Null safety

A liveChatMessage resource represents a chat message in a YouTube live chat. The resource can contain details about several types of messages, including a newly posted text message or fan funding event.

The live chat feature is enabled by default for live broadcasts and is available while the live event is active. (After the event ends, live chat is no longer available for that event.)

Annotations

Constructors

LiveChatMessage({required String kind, required String etag, required String id, required Snippet snippet, AuthorDetails? authorDetails})
LiveChatMessage.fromJson(Map<String, dynamic> json)
factory

Properties

authorDetails → AuthorDetails?
The authorDetails object contains additional details about the user that posted this message.
final
etag String
The Etag of this resource.
final
hashCode int
The hash code for this object.
read-only, inherited
id String
The ID that YouTube assigns to uniquely identify the message.
final
kind String
Identifies the API resource's type. The value will be youtube#liveChatMessage.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
snippet → Snippet
The snippet object contains core details about the chat message.
final

Methods

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

Operators

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