TomIdentity class
The display name and stable author id used to attribute authored content.
A settings identity, not an account: nothing authenticates it and nothing
checks it. It exists because authored content carries an author, and the
alternative to asking is stamping everything unknown.
Constructors
- TomIdentity({required String displayName, required String authorId})
-
const
Properties
-
The stable key their authored content is attributed to.
final
- displayName → String
-
What the user is called — shown beside what they wrote.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isUnknown → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? displayName, String? authorId}) → TomIdentity -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
attributionOf(
String authorId) → String? -
The author id to record on content a user makes, or null when
authorIdis the unknownAuthorId sentinel — for optional author fields, whereunknownwould be a placeholder written into a shared file.
Constants
- groupName → const String
- The name of the settings group that holds it.
- unknown → const TomIdentity
- What a build with no settings attributes content to.
- unknownAuthorId → const String
- The author id used when the group states nothing.