Lrc class

The parsed LRC class.

You can instantiate this class directly or parse a string using Lrc.parse().

Constructors

Lrc({LrcTypes type = LrcTypes.simple, required List<LrcLine> lyrics, String? artist, String? album, String? title, String? creator, String? author, String? program, String? version, String? length, int? offset, String? language})
Use this constructor if you want to manually create an LRC from scratch. Otherwise, parse an LRC string using Lrc.parse.

Properties

album String?
The name of the album of the song (optional)
getter/setter pair
artist String?
The name of the artist of the song (optional)
getter/setter pair
author String?
The name of the author of the lyrics (optional)
getter/setter pair
creator String?
The name of the creator of the LRC file (optional)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
language String?
The language of the song, using an IETF BCP 47 language tag (optional)
getter/setter pair
length String?
The length of the song (optional)
getter/setter pair
lyrics List<LrcLine>
The list of lyric lines
getter/setter pair
offset int?
Offset of time in milliseconds, can be positive shifts time up or negative shifts time down (optional)
getter/setter pair
program String?
The name of the program that created the LRC file (optional)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<LrcStream>
Handy parameter to get a stream of the lyrics. See List<LrcLine>.toStream().
no setter
title String?
The title of the song (optional)
getter/setter pair
type LrcTypes
The overall type of LRC for this object
getter/setter pair
version String?
The version of the program that created the LRC file (optional)
getter/setter pair

Methods

format() String
Format the lrc to a readable string that can then be outputted to an LRC file.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

isValid(String input) bool
Checks if the string input is a valid LRC using Regex.
parse(String parsed) Lrc
Parses an LRC from a string. Throws a FormatExeption if the inputted string is not valid.