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