copyWith method

CameraInfos copyWith({
  1. List<Cameras>? cameras,
})

copyWith is the function to copy the class.

Implementation

CameraInfos copyWith({
  List<Cameras>? cameras,
}) {
  return CameraInfos(
    cameras: cameras ?? this.cameras,
  );
}