mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
23 lines
467 B
Dart
23 lines
467 B
Dart
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;
|
|
}
|