Property<T extends Object> class abstract

Represents a generic property in a Notion page.
For example, Text, Number, Checkbox, etc.

Implementers
Annotations
  • @immutable

Constructors

Property.new({required String name, required String type, String? id, Value<T>? valueDetails})
Creates a Property with the given name, type, id, and valueDetails.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
id String?
final
name String
The name of the property. This is the name given to the property in the Notion database.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of the property. This is the type of the property in the Notion database.
final
value → T?
no setter
valueDetails Value<T>?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
Converts the property to a map format suitable for Notion API requests.
toString() String
A string representation of this object.
override

Operators

operator ==(covariant Property<T> other) bool
The equality operator.
override