copyWith method

PdfState copyWith({
  1. String? title,
  2. String? pdfPath,
  3. bool? isLoading,
  4. String? errorMessage,
})

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,
  );
}