copyWith method

FreeCameraOptions copyWith({
  1. FreeCameraPosition? position,
  2. FreeCameraOrientation? orientation,
})

Returns a copy of these options with the given values replaced.

To remove a value, create new options with the constructor.

Implementation

FreeCameraOptions copyWith({
  FreeCameraPosition? position,
  FreeCameraOrientation? orientation,
}) => FreeCameraOptions(
  position: position ?? this.position,
  orientation: orientation ?? this.orientation,
);