copyWith method
FaceEmbedding
copyWith({
- int? id,
- String? name,
- Value<
Uint8List?> imageCenter = const Value.absent(), - Value<
Uint8List?> imageLeft = const Value.absent(), - Value<
Uint8List?> imageRight = const Value.absent(), - Value<
Uint8List?> imageUp = const Value.absent(), - Value<
Uint8List?> imageDown = const Value.absent(), - List<
double> ? embeddingCenter, - List<
double> ? embeddingLeft, - List<
double> ? embeddingRight, - List<
double> ? embeddingUp, - List<
double> ? embeddingDown,
Implementation
FaceEmbedding copyWith(
{int? id,
String? name,
Value<Uint8List?> imageCenter = const Value.absent(),
Value<Uint8List?> imageLeft = const Value.absent(),
Value<Uint8List?> imageRight = const Value.absent(),
Value<Uint8List?> imageUp = const Value.absent(),
Value<Uint8List?> imageDown = const Value.absent(),
List<double>? embeddingCenter,
List<double>? embeddingLeft,
List<double>? embeddingRight,
List<double>? embeddingUp,
List<double>? embeddingDown}) =>
FaceEmbedding(
id: id ?? this.id,
name: name ?? this.name,
imageCenter: imageCenter.present ? imageCenter.value : this.imageCenter,
imageLeft: imageLeft.present ? imageLeft.value : this.imageLeft,
imageRight: imageRight.present ? imageRight.value : this.imageRight,
imageUp: imageUp.present ? imageUp.value : this.imageUp,
imageDown: imageDown.present ? imageDown.value : this.imageDown,
embeddingCenter: embeddingCenter ?? this.embeddingCenter,
embeddingLeft: embeddingLeft ?? this.embeddingLeft,
embeddingRight: embeddingRight ?? this.embeddingRight,
embeddingUp: embeddingUp ?? this.embeddingUp,
embeddingDown: embeddingDown ?? this.embeddingDown,
);