ShareSettings class

Constructors

ShareSettings({required bool isPublic, required bool hasPassword, String? shareToken, String? shareUrl, DateTime? passwordSetAt})
Returns a new ShareSettings instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
hasPassword ↔ bool
getter/setter pair
isPublic ↔ bool
getter/setter pair
passwordSetAt ↔ DateTime?
When the current password was set, if any.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shareToken ↔ String?
Opaque token embedded in the public URL. Empty when isPublic is false.
getter/setter pair
shareUrl ↔ String?
Fully-qualified public viewer URL. Computed server-side from PUBLIC_VIEWER_BASE (defaults to https://spatio.app) and the share token. Empty when the note is private.
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) → ShareSettings?
Returns a new ShareSettings instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ShareSettings>
mapFromJson(dynamic json) → Map<String, ShareSettings>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ShareSettings>>

Constants

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