Comment class
A comment on a file in Google Drive.
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? commentId, String? content, CommentContext? context, DateTime? createdDate, bool? deleted, String? fileId, String? fileTitle, String? htmlContent, String? kind, DateTime? modifiedDate, List<
CommentReply> ? replies, String? selfLink, String? status}) - Comment.fromJson(Map json_)
Properties
- anchor ↔ String?
-
A region of the document represented as a JSON string.
getter/setter pair
-
The author of the comment.
getter/setter pair
- commentId ↔ String?
-
The ID of the comment.
getter/setter pair
- content ↔ String?
-
The plain text content used to create this comment.
getter/setter pair
- context ↔ CommentContext?
-
The context of the file which is being commented on.
getter/setter pair
- createdDate ↔ DateTime?
-
The date when this comment was first created.
getter/setter pair
- deleted ↔ bool?
-
Whether this comment has been deleted.
getter/setter pair
- fileId ↔ String?
-
The file which this comment is addressing.
getter/setter pair
- fileTitle ↔ String?
-
The title of the file which this comment is addressing.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- htmlContent ↔ String?
-
HTML formatted content for this comment.
getter/setter pair
- kind ↔ String?
-
This is always
drive#comment
.getter/setter pair - modifiedDate ↔ DateTime?
-
The date when this comment or any of its replies were last modified.
getter/setter pair
-
replies
↔ List<
CommentReply> ? -
Replies to this post.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selfLink ↔ String?
-
A link back to this comment.
getter/setter pair
- status ↔ String?
-
The status of 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