copyWith method

MapMovedEvent copyWith({
  1. MapMoveEventType? type,
  2. LatLng? latLng,
  3. String? title,
  4. String? address,
  5. double? zoom,
  6. LatLngBounds? bounds,
})

Implementation

MapMovedEvent copyWith({
  MapMoveEventType? type,
  LatLng? latLng,
  String? title,
  String? address,
  double? zoom,
  LatLngBounds? bounds,
}) {
  return MapMovedEvent(
    type: type ?? this.type,
    latLng: latLng ?? this.latLng,
    title: title ?? this.title,
    address: address ?? this.address,
    zoom: zoom ?? this.zoom,
    bounds: bounds ?? this.bounds,
  );
}