Comment class

YouTube comment metadata.

Annotations
  • @freezed

Constructors

Comment(String author, ChannelId channelId, String text, int likeCount, String publishedTime, int replyCount, bool isHearted, @internal String? continuation)
Initializes an instance of Comment
const
factory

Properties

author String
Comment author name.
no setterinherited
channelId ChannelId
Comment author channel id.
no setterinherited
continuation String?
Used internally. Shouldn't be used in the code.
no setterinherited
copyWith → $CommentCopyWith<Comment>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isHearted bool
True if the comment is hearted by the creator.
no setterinherited
likeCount int
Comment likes count.
no setterinherited
publishedTime String
Published time as string. (For example: "2 years ago")
no setterinherited
replyCount int
Comment reply count.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Comment text.
no setterinherited

Methods

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