UserOptinView class

Constructors

UserOptinView({bool? canSet, String? handle, bool? listed})
Returns a new UserOptinView instance.

Properties

canSet ↔ bool?
CanSet is false when the caller's ledger identity cannot be resolved (no user name on the principal). Writing the preference would fail, so hide the control.
getter/setter pair
handle ↔ String?
Handle is the display name on the caller's listed row. Empty when they never chose one; opting in without a handle sets it to their username, so a listed row is never blank.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
listed ↔ bool?
Listed is true when the caller's board row is published under Handle to other viewers. False — the default for anyone who never opted in — anonymizes the row; the metric still counts, only the name is withheld.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

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