copyWith method
InfoWindow
copyWith({
- String? titleParam,
- String? snippetParam,
- Offset? anchorParam,
- VoidCallback? onTapParam,
Creates a new InfoWindow object whose values are the same as this instance, unless overwritten by the specified parameters.
Implementation
InfoWindow copyWith({
String? titleParam,
String? snippetParam,
Offset? anchorParam,
VoidCallback? onTapParam,
}) {
return InfoWindow(
title: titleParam ?? title,
snippet: snippetParam ?? snippet,
anchor: anchorParam ?? anchor,
onTap: onTapParam ?? onTap,
);
}