nc-photos/app/lib/entity/person_face.dart

24 lines
467 B
Dart
Raw Normal View History

2023-07-03 19:23:42 +02:00
import 'package:nc_photos/entity/file_descriptor.dart';
import 'package:to_string/to_string.dart';
part 'person_face.g.dart';
/// A file with the face of a person
abstract class PersonFace {
const PersonFace();
FileDescriptor get file;
}
/// The basic form of [PersonFace]
@toString
class BasicPersonFace implements PersonFace {
const BasicPersonFace(this.file);
@override
String toString() => _$toString();
@override
final FileDescriptor file;
}