MastodonTag class

Hashtag information model.

Annotations

Constructors

MastodonTag({required String id, required String name, required String url, List<MastodonTagHistory> history = const [], bool? following, bool? featuring})
Creates a MastodonTag with the given fields.
const
MastodonTag.fromJson(Map<String, dynamic> json)
Creates a MastodonTag from a JSON map.
factory

Properties

featuring bool?
Whether the authenticated user is featuring this tag on their profile (authenticated only).
final
following bool?
Whether the authenticated user is following this tag (authenticated only).
final
hashCode int
The hash code for this object.
no setterinherited
history List<MastodonTagHistory>
Recent daily usage statistics.
final
id String
Database ID of the tag.
final
name String
Name of the hashtag without the # symbol.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
URL to the hashtag on the instance.
final

Methods

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

Operators

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