nc-photos/app/lib/entity/person/builder.dart

18 lines
522 B
Dart
Raw Normal View History

2023-07-03 19:23:42 +02:00
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,
),
);
}
}