Comment constructor

const Comment(
  1. String author,
  2. ChannelId channelId,
  3. String text,
  4. int likeCount,
  5. String publishedTime,
  6. int replyCount,
  7. bool isHearted,
  8. @internal String? continuation,
)

Initializes an instance of Comment

Implementation

const factory Comment(
  /// Comment author name.
  String author,

  /// Comment author channel id.
  ChannelId channelId,

  /// Comment text.
  String text,

  /// Comment likes count.
  int likeCount,

  /// Published time as string. (For example: "2 years ago")
  String publishedTime,

  /// Comment reply count.
  int replyCount,

  /// True if the comment is hearted by the creator.
  //ignore: avoid_positional_boolean_parameters
  bool isHearted,

  /// Used internally.
  /// Shouldn't be used in the code.
  @internal String? continuation,
) = _Comment;