copyWith method

Employee copyWith({
  1. String? name,
  2. NullableAddressData? address,
})

Implementation

Employee copyWith({String? name, NullableAddressData? address}) {
  return Employee(name: name ?? this.name, address: address ?? this.address);
}