Comment class Worksheet

A classic cell comment (note), the little pop-up box anchored to a cell.

Attach one with Sheet.setComment or cell.comment = Comment(...), and read it back from Sheet.getComment / cell.comment.

sheet.setComment(
  CellIndex.indexByString('B2'),
  Comment('Double-check this figure', author: 'Reviewer'),
);

Constructors

Comment(String text, {String? author})
Creates a comment with the given text and optional author.

Properties

author → String?
The comment's author, shown in Excel's review pane, or null.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
The comment body.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override