TextAnnotations class

The text style.

Constructors

TextAnnotations({bool bold = false, bool italic = false, bool strikethrough = false, bool underline = false, bool code = false, ColorsTypes color = ColorsTypes.Default})
Main text annotations constructor.
TextAnnotations.fromJson(Map<String, dynamic> json)
Create a new text annotation instance from json.

Properties

bold bool
A marker for bold text.
getter/setter pair
code bool
A marker for code text.
getter/setter pair
color ColorsTypes
The color of the text. Default by... by default hehe.
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 type.
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() Map<String, 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