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'; import 'package:nc_photos/account.dart';
class Person with EquatableMixin { class Person with EquatableMixin {
Person({ const Person({
required this.name, required this.name,
required this.thumbFaceId, required this.thumbFaceId,
required this.count, required this.count,
}); });
@override @override
toString() { toString() => "$runtimeType {"
return "$runtimeType {" "name: '$name', "
"name: '$name', " "thumbFaceId: '$thumbFaceId', "
"thumbFaceId: '$thumbFaceId', " "count: '$count', "
"count: '$count', " "}";
"}";
}
@override @override
get props => [ get props => [