copyWith method

MapViewportOptions copyWith({
  1. NorthOrientation? northOrientation,
  2. ConstrainMode? constrainMode,
  3. ViewportMode? viewportMode,
  4. EdgeInsets? frustumOffset,
})

A copy of this value with the given members replaced.

Implementation

MapViewportOptions copyWith({
  NorthOrientation? northOrientation,
  ConstrainMode? constrainMode,
  ViewportMode? viewportMode,
  EdgeInsets? frustumOffset,
}) => MapViewportOptions(
  northOrientation: northOrientation ?? this.northOrientation,
  constrainMode: constrainMode ?? this.constrainMode,
  viewportMode: viewportMode ?? this.viewportMode,
  frustumOffset: frustumOffset ?? this.frustumOffset,
);