copyWith method

TemplateTheme copyWith({
  1. String? accent,
  2. String? ink,
  3. String? muted,
  4. String? wash,
  5. String? line,
  6. String? onAccent,
  7. PdfPageFormat? pageFormat,
  8. EdgeInsets? margin,
})

copyWith API.

Implementation

TemplateTheme copyWith({
  String? accent,
  String? ink,
  String? muted,
  String? wash,
  String? line,
  String? onAccent,
  PdfPageFormat? pageFormat,
  EdgeInsets? margin,
}) {
  return TemplateTheme(
    accent: accent ?? this.accent,
    ink: ink ?? this.ink,
    muted: muted ?? this.muted,
    wash: wash ?? this.wash,
    line: line ?? this.line,
    onAccent: onAccent ?? this.onAccent,
    pageFormat: pageFormat ?? this.pageFormat,
    margin: margin ?? this.margin,
  );
}