Improve code

This commit is contained in:
Ming Ming 2022-08-05 17:14:03 +08:00
parent 8915ddf002
commit fc3279a4d8

View file

@ -2,20 +2,18 @@ import 'package:equatable/equatable.dart';
import 'package:nc_photos/account.dart';
class Person with EquatableMixin {
Person({
const Person({
required this.name,
required this.thumbFaceId,
required this.count,
});
@override
toString() {
return "$runtimeType {"
"name: '$name', "
"thumbFaceId: '$thumbFaceId', "
"count: '$count', "
"}";
}
toString() => "$runtimeType {"
"name: '$name', "
"thumbFaceId: '$thumbFaceId', "
"count: '$count', "
"}";
@override
get props => [