copyWith method

InfoWindow copyWith (
  1. {String titleParam,
  2. String snippetParam,
  3. Offset anchorParam,
  4. VoidCallback onTapParam}

Creates a new InfoWindow object whose values are the same as this instance, unless overwritten by the specified parameters.


InfoWindow copyWith({
  String titleParam,
  String snippetParam,
  Offset anchorParam,
  VoidCallback onTapParam,
}) {
  return InfoWindow(
    title: titleParam ?? title,
    snippet: snippetParam ?? snippet,
    anchor: anchorParam ?? anchor,
    onTap: onTapParam ?? onTap,