Children class

A representation of the children Notion object. Also list of blocks.

Constructors

Children({@deprecated Heading? heading, @deprecated Paragraph? paragraph, @deprecated List<ToDo>? toDo})
Main children constructor.
Children.fromJson(List json)
Map a new children instance from a json blocks list.
factory
Children.withBlocks(List<Block> blocks)
Constructor that initialize a Children instance with a list of blocks.

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Returns true if the children list IS empty.
no setter
isNotEmpty bool
Returns true if the children list IS NOT empty.
no setter
length int
The length of the list children.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Block block) Children
Add a new block to the list of blocks and returns this instance.
addAll(List<Block> blocks) Children
Add blocks to the list of blocks and returns this instance.
filterBlocks({List<BlockTypes> exclude = const [], List<BlockTypes> include = const [], BlockTypes? onlyLeft, String? id}) List<Block>
Filter the list of blocks.
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.
toString() String
A string representation of this object.
inherited

Operators

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