copyWith method

CameraDescription copyWith({
  1. int? sensorOrientation,
  2. String? name,
  3. CameraLensDirection? lensDirection,
})

Implementation

CameraDescription copyWith({
  int? sensorOrientation,
  String? name,
  CameraLensDirection? lensDirection
}) {
  return CameraDescription(
    sensorOrientation: sensorOrientation ?? this.sensorOrientation,
    name: name ?? this.name,
    lensDirection: lensDirection ?? this.lensDirection,
  );
}