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