copyWith method

AssociatedItemBean copyWith({
  1. String? id,
  2. String? name,
  3. String? parentId,
  4. String? parentName,
  5. String? typeName,
})

Implementation

AssociatedItemBean copyWith(
    {String? id,
    String? name,
    String? parentId,
    String? parentName,
    String? typeName}) {
  return AssociatedItemBean(
    id: id ?? this.id,
    name: name ?? this.name,
    parentId: parentId ?? this.parentId,
    parentName: parentName ?? this.parentName,
    typeName: typeName ?? this.typeName,
  );
}