copyWith method

NiceComponentInfo copyWith({
  1. String? name,
  2. String? path,
  3. int? estimatedSizeBytes,
  4. Set<String>? dependencies,
  5. Set<String>? usedBy,
  6. bool? isExported,
  7. bool? isUsed,
})

Implementation

NiceComponentInfo copyWith({
  String? name,
  String? path,
  int? estimatedSizeBytes,
  Set<String>? dependencies,
  Set<String>? usedBy,
  bool? isExported,
  bool? isUsed,
}) {
  return NiceComponentInfo(
    name: name ?? this.name,
    path: path ?? this.path,
    estimatedSizeBytes: estimatedSizeBytes ?? this.estimatedSizeBytes,
    dependencies: dependencies ?? this.dependencies,
    usedBy: usedBy ?? this.usedBy,
    isExported: isExported ?? this.isExported,
    isUsed: isUsed ?? this.isUsed,
  );
}