copyWith method
Implementation
Locator copyWith({
String? href,
String? type,
String? title,
Locations? locations,
LocatorText? text,
Map<String, dynamic>? additionalProperties,
}) {
final mergeProperties = Map<String, dynamic>.of(this.additionalProperties)
..addAll(additionalProperties ?? {})
..removeWhere((key, value) => value == null);
return Locator(
href: href ?? this.href,
type: type ?? this.type,
title: title ?? this.title,
locations: locations ?? this.locations,
text: text ?? this.text,
additionalProperties: mergeProperties,
);
}