Note class

Constructors

Note({required String id, String? provider, String? accountId, String? ownerUserId, required String title, required String content, String? icon, String? coverImage, String? parentId, Map<String, Object> properties = const {}, required bool archived, required DateTime createdAt, required DateTime updatedAt, String? lastEditedBy})
Returns a new Note instance.

Properties

accountId ↔ String?
Connected-account row this note belongs to.
getter/setter pair
archived ↔ bool
getter/setter pair
content ↔ String
Markdown body. The block tree at /v1/notes/{id}/blocks is the canonical structured representation; content is a flattened markdown view kept for clients that don't render blocks.
getter/setter pair
coverImage ↔ String?
URL of the note's cover image.
getter/setter pair
createdAt ↔ DateTime
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
icon ↔ String?
Emoji or short string used as the note's icon.
getter/setter pair
id ↔ String
Stable provider id for the note.
getter/setter pair
lastEditedBy ↔ String?
User id of the most recent editor.
getter/setter pair
ownerUserId ↔ String?
User id of the note's owner. Surfaced so the renderer can show "Shared with you" when ownerUserId differs from the viewer's id. Empty for non-native providers.
getter/setter pair
parentId ↔ String?
Parent note id when notes are nested.
getter/setter pair
properties ↔ Map<String, Object>
Free-form provider-specific properties (tags, etc.).
getter/setter pair
provider ↔ String?
Registered provider id (e.g. native-notes).
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title ↔ String
getter/setter pair
updatedAt ↔ DateTime
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) → Note?
Returns a new Note instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Note>
mapFromJson(dynamic json) → Map<String, Note>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Note>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.