Page class
A representation of the Page Notion object.
- Inheritance
-
- Object
- BaseFields
- Page
Constructors
- Page({required Parent parent, bool archived = false, Children? children, String id = '', Text? title})
- Main constructor for the page.
- Page.empty()
- Constructor for empty page.
-
Page.fromJson(Map<
String, dynamic> json) -
Contructor from json.
factory
Properties
- archived ↔ bool
-
The field that defined if is archived or not.
getter/setter pair
- children ↔ Children?
-
The content of the page.
getter/setter pair
- createdTime ↔ String
-
The creation time of the object.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
The object id.
getter/setter pairinherited
- lastEditedTime ↔ String
-
The last edited time of the object.
getter/setter pairinherited
- object ↔ ObjectTypes
-
The type of this object. Always Page for this.
finalgetter/setter pairinherited-setteroverride-getter
- parent ↔ Parent
-
The information of the page parent.
getter/setter pair
- properties → Properties
-
The properties of the page.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strObject → String
-
The string value of the object type.
no setterinherited
- title ← Text
-
Set the
title
of the page.no getter
Methods
-
addPropertiesFromJson(
Map< String, dynamic> json) → Page -
Add a multiples properties from a
json
to this properties. -
addProperty(
{required String name, required Property property}) → Page -
Add a
property
with a specificname
to this properties. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBaseProperties(
{required String createdTime, required String lastEditedTime}) → void -
Set the
createdTime
and thelastEditedTime
properties.inherited -
toJson(
{bool isResponse = false}) → 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