mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-25 00:14:42 +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
|
@override
|
||||||
toString() {
|
toString({bool isDeep = false}) {
|
||||||
|
final itemsStr =
|
||||||
|
isDeep ? items.toReadableString() : "List {length: ${items.length}}";
|
||||||
return "$runtimeType {"
|
return "$runtimeType {"
|
||||||
"lastUpdated: $lastUpdated, "
|
"lastUpdated: $lastUpdated, "
|
||||||
"name: $name, "
|
"name: $name, "
|
||||||
"items: ${items.toReadableString()}, "
|
"items: $itemsStr, "
|
||||||
"albumFile: $albumFile, "
|
"albumFile: $albumFile, "
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue