copyWith method

ControllerValue copyWith({
  1. CameraController? controller,
  2. bool? isReady,
  3. String? error,
})

Implementation

ControllerValue copyWith({
  CameraController? controller,
  bool? isReady,
  String? error,
}) {
  return ControllerValue(
    controller: controller ?? this.controller,
    isReady: isReady ?? this.isReady,
    error: error ?? this.error,
  );
}