copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
LocationAddress copyWith({
String? countryCode,
String? state,
String? city,
String? street,
}) => LocationAddress(
countryCode: countryCode ?? this.countryCode,
state: state ?? this.state,
city: city ?? this.city,
street: street ?? this.street,
);