copyWith method
Creates a copy of this state with optional parameter overrides
Implementation
PdfState copyWith({
String? title,
String? pdfPath,
bool? isLoading,
String? errorMessage,
}) {
return PdfState(
title: title ?? this.title,
pdfPath: pdfPath ?? this.pdfPath,
isLoading: isLoading ?? this.isLoading,
errorMessage: errorMessage ?? this.errorMessage,
);
}