mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
26 lines
650 B
Dart
26 lines
650 B
Dart
import 'package:equatable/equatable.dart';
|
|
import 'package:to_string/to_string.dart';
|
|
|
|
part 'recognize_face.g.dart';
|
|
|
|
/// A person's face recognized by the Recognize app
|
|
///
|
|
/// Beware that the terminology used in Recognize is different to
|
|
/// FaceRecognition, which is also followed by this app. A face in Recognize is
|
|
/// a person in FaceRecognition and this app
|
|
@toString
|
|
class RecognizeFace with EquatableMixin {
|
|
const RecognizeFace({
|
|
required this.label,
|
|
});
|
|
|
|
bool get isNamed => int.tryParse(label) == null;
|
|
|
|
@override
|
|
String toString() => _$toString();
|
|
|
|
@override
|
|
List<Object?> get props => [label];
|
|
|
|
final String label;
|
|
}
|