Tag class

Tag.

Annotations
  • @immutable
  • @MappableClass()

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.
no setteroverride
id int
Tag ID.
final
name String
Tag name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
summary String
Tag summary (name and tagged books count).
no setter
type TagType
Tag type.
final
typeName String
Tag type as a string.
no setter
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.
no setter
parseJson Tag Function(String json)
Parses JSON string into Tag similarly to parse.
no setter
parseJsonList List<Tag> Function(String json)
Parses JSON string into List of Tag instances similarly to parseList.
no setter
parseList List<Tag> Function(dynamic value)
Parses List of Tag instances from a given value.
no setter