NotionClient class

Annotations
  • @immutable

Constructors

NotionClient.new({required NotionOptions options})

Properties

hashCode int
The hash code for this object.
no setterinherited
options NotionOptions
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createPage({required String databaseId, required List<Property<Object>> properties}) → AsyncResult<void, AppException>
Creates a new page in a Notion database.
fetchAll(DatabaseId databaseId, {int pageSize = 100, Filter? filter}) → AsyncResult<Pages, AppException>
Fetches all pages from a Notion database.
fetchPageProperties(String pageId) → AsyncResult<Map<String, Property<Object>>, AppException>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(DatabaseId databaseId, {bool forceFetchRelationPages = false, Filter? filter, List<Sort> sorts = const [], bool cacheRelationPages = false, CursorPaginationStrategyParams? paginationParams}) → AsyncResult<PaginatedResponse<Page>, AppException>
Queries a Notion database and returns its properties.
toString() String
A string representation of this object.
inherited
updatePage({required String pageId, required List<Property<Object>> properties}) → AsyncResult<void, AppException>
Updates the properties of an existing page in a Notion database.

Operators

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