copyWith method

FaceEmbedding copyWith({
  1. int? id,
  2. String? name,
  3. Value<Uint8List?> imageCenter = const Value.absent(),
  4. Value<Uint8List?> imageLeft = const Value.absent(),
  5. Value<Uint8List?> imageRight = const Value.absent(),
  6. Value<Uint8List?> imageUp = const Value.absent(),
  7. Value<Uint8List?> imageDown = const Value.absent(),
  8. List<double>? embeddingCenter,
  9. List<double>? embeddingLeft,
  10. List<double>? embeddingRight,
  11. List<double>? embeddingUp,
  12. 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,
    );