mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Simplify Album.toString
This commit is contained in:
parent
82e6732f6e
commit
4926228164
1 changed files with 4 additions and 2 deletions
|
@ -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, "
|
||||
"}";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue