Simplify Album.toString

This commit is contained in:
Ming Ming 2021-06-12 23:18:41 +08:00
parent 82e6732f6e
commit 4926228164

View file

@ -159,11 +159,13 @@ class Album with EquatableMixin {
}
@override
toString() {
toString({bool isDeep = false}) {
final itemsStr =
isDeep ? items.toReadableString() : "List {length: ${items.length}}";
return "$runtimeType {"
"lastUpdated: $lastUpdated, "
"name: $name, "
"items: ${items.toReadableString()}, "
"items: $itemsStr, "
"albumFile: $albumFile, "
"}";
}