copyWith method

PartsMask copyWith({
  1. String? masksPath,
  2. String? category,
  3. List<double>? boxes,
  4. String? vehiclePartName,
  5. double? scores,
  6. String? maskUrl,
  7. bool? isPart,
  8. Color? color,
})

Implementation

PartsMask copyWith({
  String? masksPath,
  String? category,
  List<double>? boxes,
  String? vehiclePartName,
  double? scores,
  String? maskUrl,
  bool? isPart,
  Color? color,
}) =>
    PartsMask(
      masksPath: masksPath ?? this.masksPath,
      boxes: boxes ?? this.boxes,
      vehiclePartName: vehiclePartName ?? this.vehiclePartName,
      scores: scores ?? this.scores,
      maskUrl: maskUrl ?? this.maskUrl,
      isPart: isPart ?? this.isPart,
      category: category ?? this.category,
      color: color ?? this.color,
    );