copyWith method

MapOptions copyWith({
  1. LogicalExtent? initialExtent,
  2. MapMode? mapMode,
  3. bool? fastPforEnabled,
  4. RuntimeEventFlag? eventMask,
  5. bool? tileCacheEnabled,
})

A copy of this value with the given members replaced.

Implementation

MapOptions copyWith({
  LogicalExtent? initialExtent,
  MapMode? mapMode,
  bool? fastPforEnabled,
  RuntimeEventFlag? eventMask,
  bool? tileCacheEnabled,
}) => MapOptions(
  initialExtent: initialExtent ?? this.initialExtent,
  mapMode: mapMode ?? this.mapMode,
  fastPforEnabled: fastPforEnabled ?? this.fastPforEnabled,
  eventMask: eventMask ?? this.eventMask,
  tileCacheEnabled: tileCacheEnabled ?? this.tileCacheEnabled,
);