copyWith method

Camera copyWith({
  1. LatLng? center,
  2. double? centerAltitude,
  3. EdgeInsets? padding,
  4. double? zoom,
  5. double? bearing,
  6. double? pitch,
  7. double? roll,
  8. double? fieldOfView,
})

A copy of this value with the given members replaced.

Implementation

Camera copyWith({
  LatLng? center,
  double? centerAltitude,
  EdgeInsets? padding,
  double? zoom,
  double? bearing,
  double? pitch,
  double? roll,
  double? fieldOfView,
}) => Camera(
  center: center ?? this.center,
  centerAltitude: centerAltitude ?? this.centerAltitude,
  padding: padding ?? this.padding,
  zoom: zoom ?? this.zoom,
  bearing: bearing ?? this.bearing,
  pitch: pitch ?? this.pitch,
  roll: roll ?? this.roll,
  fieldOfView: fieldOfView ?? this.fieldOfView,
);