Tag class

A Tag represents an ID3 tag (both v1 and v2).

All the fields are null if they don't appear in the file, except other and pictures that are empty by default.

Constructors

Tag({String? version, Duration? duration, String? title, String? artist, String? genre, int? trackNumber, int? trackTotal, String? discNumber, String? discTotal, String? lyrics, String? comment, String? album, String? albumArtist, String? year, List<Picture>? pictures, Map<String, String>? other})
Default constructor
Tag.fromMap(Map<String, dynamic> map)
Create a Tag from a Map of the tags.

Properties

album String?
Album of the track
getter/setter pair
albumArtist String?
Artist of the album
getter/setter pair
artist String?
Artist of the track
getter/setter pair
comment String?
Custom comment
getter/setter pair
discNumber String?
Number of the disc in the artist discography
getter/setter pair
discTotal String?
Total number of discs in the artist discography
getter/setter pair
duration Duration?
The duration of the song.
getter/setter pair
genre String?
The genre of the track.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lyrics String?
Lyrics of the track
getter/setter pair
other Map<String, String>
Any other tags
getter/setter pair
pictures List<Picture>
The file attached pictures, sometimes called "artworks".
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
Title of the track
getter/setter pair
trackNumber int?
Number of the track in the album
getter/setter pair
trackTotal int?
Total number of tracks in the album
getter/setter pair
version String?
Version if ID3 used
getter/setter pair
year String?
Year of publication
getter/setter pair

Methods

merge(Tag other) Tag
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Get a Map of the tags from a Tag object.
toString() String
A string representation of this object.
override

Operators

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