copyWith method

OrgInfo copyWith({
  1. int? branchCount,
  2. OrgId? id,
  3. Optional<String?>? name,
})

Implementation

OrgInfo copyWith({
  int? branchCount,
  OrgId? id,
  Optional<String?>? name
}) {
  return OrgInfo(
    branchCount: branchCount ?? this.branchCount,
    id: id ?? this.id,
    name: name != null ? name.value : this.name
  );
}