formattedLine property
String
formattedLine
get the string for a formatted line
Implementation
String get formattedLine {
///function to add leading zeros
String f(int x) => x.toString().padLeft(2, '0');
// LRC format doesn't accept hours.
final minutes = timestamp.inMinutes % 60,
seconds = timestamp.inSeconds % 60,
hundreds = timestamp.inMilliseconds % 1000 ~/ 10;
return '[${f(minutes)}:${f(seconds)}.${f(hundreds)}]$lyrics';
}