copyWith method

TileOverlay copyWith({
  1. bool? fadeInParam,
  2. TileProvider? tileProviderParam,
  3. double? transparencyParam,
  4. int? zIndexParam,
  5. bool? visibleParam,
  6. int? tileSizeParam,
})

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

Implementation

TileOverlay copyWith({
  bool? fadeInParam,
  TileProvider? tileProviderParam,
  double? transparencyParam,
  int? zIndexParam,
  bool? visibleParam,
  int? tileSizeParam,
}) {
  return TileOverlay(
    tileOverlayId: tileOverlayId,
    fadeIn: fadeInParam ?? fadeIn,
    tileProvider: tileProviderParam ?? tileProvider,
    transparency: transparencyParam ?? transparency,
    zIndex: zIndexParam ?? zIndex,
    visible: visibleParam ?? visible,
    tileSize: tileSizeParam ?? tileSize,
  );
}