Chat class

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.)

Constructors

Chat(String token, Dio dio)

Properties

accept String
finalinherited
contentType String
finalinherited
dio → Dio
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
final

Methods

buildParts(List<String> partList, String part) String
inherited
delete({required String id}) Future<void>
Deletes a chat message. The API request must be authorized by the channel owner or a moderator of the live chat.
insert({required Map<String, dynamic> body}) Future<LiveChatMessage>
Adds a message to a live chat.
list({required String liveChatId, String? hl, int? maxResults, String? pageToken, int? profileImageSize}) Future<LiveChatMessageListResponse>
Lists live chat messages for a specific chat.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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