CommentSnippet class

Basic details about a comment, such as its author and text.

Constructors

CommentSnippet({CommentSnippetAuthorChannelId? authorChannelId, String? authorChannelUrl, String? authorDisplayName, String? authorProfileImageUrl, bool? canRate, String? channelId, int? likeCount, String? moderationStatus, String? parentId, DateTime? publishedAt, String? textDisplay, String? textOriginal, DateTime? updatedAt, String? videoId, String? viewerRating})
CommentSnippet.fromJson(Map json_)

Properties

authorChannelId CommentSnippetAuthorChannelId?
getter/setter pair
authorChannelUrl String?
Link to the author's YouTube channel, if any.
getter/setter pair
authorDisplayName String?
The name of the user who posted the comment.
getter/setter pair
authorProfileImageUrl String?
The URL for the avatar of the user who posted the comment.
getter/setter pair
canRate bool?
Whether the current viewer can rate this comment.
getter/setter pair
channelId String?
The id of the corresponding YouTube channel.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
likeCount int?
The total number of likes this comment has received.
getter/setter pair
moderationStatus String?
The comment's moderation status.
getter/setter pair
parentId String?
The unique id of the parent comment, only set for replies.
getter/setter pair
publishedAt DateTime?
The date and time when the comment was originally published.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textDisplay String?
The comment's text.
getter/setter pair
textOriginal String?
The comment's original raw text as initially posted or last updated.
getter/setter pair
updatedAt DateTime?
The date and time when the comment was last updated.
getter/setter pair
videoId String?
The ID of the video the comment refers to, if any.
getter/setter pair
viewerRating String?
The rating the viewer has given to this comment.
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