blockly > icons > CommentIcon > saveState

icons.CommentIcon.saveState() method

Signature:

saveState(): CommentState | null;

Returns:

CommentState | null

the state of the comment as a JSON serializable value if the comment has text. Otherwise returns null.