nc-photos/app/lib/entity/person/builder.dart
2023-07-22 22:27:54 +08:00

17 lines
522 B
Dart

import 'package:nc_photos/account.dart';
import 'package:nc_photos/entity/face_recognition_person.dart';
import 'package:nc_photos/entity/person.dart';
import 'package:nc_photos/entity/person/content_provider/face_recognition.dart';
class PersonBuilder {
static Person byFaceRecognitionPerson(
Account account, FaceRecognitionPerson person) {
return Person(
name: person.name,
contentProvider: PersonFaceRecognitionProvider(
account: account,
person: person,
),
);
}
}