Tag class

Annotations
  • @freezed

Constructors

Tag({required String name, required String url, @JsonKey(name: 'history') List<UsageStatistics>? usageHistory, @JsonKey(name: 'following') bool? isFollowing})
const
factory
Tag.fromJson(Map<String, Object?> json)
factory

Properties

copyWith → $TagCopyWith<Tag>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isFollowing bool?
Whether the current token’s authorized user is following this tag.
no setterinherited
name String
The value of the hashtag after the # sign.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
A link to the hashtag on the instance.
no setterinherited
usageHistory List<UsageStatistics>?
Usage history for given days (typically the past week).
no setterinherited

Methods

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

Operators

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