TitleProp class

A representation of a title property for any Notion object.

Inheritance

Constructors

TitleProp({List<Text> content = const <Text>[], String? name})
Main title property constructor.
TitleProp.fromJson(Map<String, dynamic> json, {String? subfield})
Create a new property instance from json.

Properties

content ↔ List<Text>
The property content.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
The property id.
getter/setter pairinherited
isMultiSelect → bool
Returns true if property is MultiSelect type.
no setterinherited
isNone → bool
Returns true if property don't have a known type.
no setterinherited
isRichText → bool
Returns true if property is RichText type.
no setterinherited
isTitle → bool
Returns true if property is Title type.
no setterinherited
name ↔ String?
The property name.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strType → String
The string value for this property type.
no setterinherited
type → PropertiesTypes
The property type. Always Title for this.
final
value → List<Text>
The value of the content.
no setteroverride

Methods

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

Operators

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