copyWith method
InputPageBlockMap
copyWith({
- Location? location,
- int? zoom,
- int? width,
- int? height,
- PageBlockCaption? caption()?,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
InputPageBlockMap copyWith({
Location? location,
int? zoom,
int? width,
int? height,
PageBlockCaption? Function()? caption,
}) => InputPageBlockMap(
location: location ?? this.location,
zoom: zoom ?? this.zoom,
width: width ?? this.width,
height: height ?? this.height,
caption: caption != null ? caption() : this.caption,
);