Tag class

Tag.

Annotations

Constructors

Tag({required int id, required TagType type, required String name, required int count, required String url})
Creates a tag.
const
Tag.dummy(int id, [String name = 'dummy'])
Creates a "dummy" tag.
const

Properties

count int
Count of tagged books.
final
hashCode int
The hash code for this object.
read-onlyoverride
id int
Tag ID.
final
name String
Tag name.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
summary String
Tag summary (name and tagged books count).
read-only
type TagType
Tag type.
final
typeName String
Tag type as a string.
read-only
url String
Tag url.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
inherited
toMap() Map<String, dynamic>
inherited
toString() String
Returns tag name.
override

Operators

operator ==(Object other) bool
Compares tags.
override

Static Properties

parse Tag Function(dynamic value)
Parses Tag instance from a given value.
read-only
parseJson Tag Function(String json)
Parses JSON string into Tag similarly to parse.
read-only
parseJsonList List<Tag> Function(String json)
Parses JSON string into List of Tag instances similarly to parseList.
read-only
parseList List<Tag> Function(dynamic value)
Parses List of Tag instances from a given value.
read-only