Comment class

A comment on a file.

Some resource methods (such as comments.update) require a commentId. Use the comments.list method to retrieve the ID for a comment in a file.

Constructors

Comment({String? anchor, User? author, String? content, DateTime? createdTime, bool? deleted, String? htmlContent, String? id, String? kind, DateTime? modifiedTime, CommentQuotedFileContent? quotedFileContent, List<Reply>? replies, bool? resolved})
Comment.fromJson(Map json_)

Properties

anchor String?
A region of the document represented as a JSON string.
getter/setter pair
author User?
The author of the comment.
getter/setter pair
content String?
The plain text content of the comment.
getter/setter pair
createdTime DateTime?
The time at which the comment was created (RFC 3339 date-time).
getter/setter pair
deleted bool?
Whether the comment has been deleted.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
htmlContent String?
The content of the comment with HTML formatting.
getter/setter pair
id String?
The ID of the comment.
getter/setter pair
kind String?
Identifies what kind of resource this is.
getter/setter pair
modifiedTime DateTime?
The last time the comment or any of its replies was modified (RFC 3339 date-time).
getter/setter pair
quotedFileContent CommentQuotedFileContent?
The file content to which the comment refers, typically within the anchor region.
getter/setter pair
replies List<Reply>?
The full list of replies to the comment in chronological order.
getter/setter pair
resolved bool?
Whether the comment has been resolved by one of its replies.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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