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