copyWith method
CameraDescription
copyWith({
- int? sensorOrientation,
- String? name,
- 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,
);
}