TextAnnotations class

The text styles.

Constructors

TextAnnotations.new({bool bold = false, bool italic = false, bool strikethrough = false, bool underline = false, bool code = false, RichTextColors color = RichTextColors.none})

Properties

bold bool
A marker for bold text.
getter/setter pair
code bool
A marker for code text.
getter/setter pair
color RichTextColors
The color of the text.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
italic bool
A marker for italic text.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strColor String
The string value of the color.
no setter
strikethrough bool
A marker for strikethrough text.
getter/setter pair
underline bool
A marker for underline text.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
Convert this to a json representation valid for the Notion API.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited