copyWith method

ScannerTheme copyWith({
  1. Color? accent,
  2. Brightness? brightness,
  3. double? windowRadius,
  4. ScannerButtonShape? buttonShape,
  5. bool? blur,
  6. bool? scrimBlur,
  7. String? fontFamily,
  8. String? monoFontFamily,
  9. Color? warning,
  10. Color? danger,
  11. Color? window,
  12. Color? scrim,
  13. double? bracketWidth,
  14. double? bracketLength,
  15. ScannerWindowShape? windowShape,
  16. bool? breathing,
  17. ScanLine? scanLine,
  18. ScannerWindowPicture? windowPicture,
  19. Color? glass,
  20. Color? sheet,
  21. double? sheetRadius,
  22. Color? outline,
  23. double? outlineWidth,
  24. ScannerTextStyles? textStyles,
  25. ScannerIconSet? icons,
})

A copy with the given fields replaced.

Implementation

ScannerTheme copyWith({
  Color? accent,
  Brightness? brightness,
  double? windowRadius,
  ScannerButtonShape? buttonShape,
  bool? blur,
  bool? scrimBlur,
  String? fontFamily,
  String? monoFontFamily,
  Color? warning,
  Color? danger,
  Color? window,
  Color? scrim,
  double? bracketWidth,
  double? bracketLength,
  ScannerWindowShape? windowShape,
  bool? breathing,
  ScanLine? scanLine,
  ScannerWindowPicture? windowPicture,
  Color? glass,
  Color? sheet,
  double? sheetRadius,
  Color? outline,
  double? outlineWidth,
  ScannerTextStyles? textStyles,
  ScannerIconSet? icons,
}) => ScannerTheme(
  accent: accent ?? this.accent,
  brightness: brightness ?? this.brightness,
  windowRadius: windowRadius ?? this.windowRadius,
  buttonShape: buttonShape ?? this.buttonShape,
  blur: blur ?? this.blur,
  scrimBlur: scrimBlur ?? this.scrimBlur,
  fontFamily: fontFamily ?? this.fontFamily,
  monoFontFamily: monoFontFamily ?? this.monoFontFamily,
  warning: warning ?? this.warning,
  danger: danger ?? this.danger,
  window: window ?? this.window,
  scrim: scrim ?? this.scrim,
  bracketWidth: bracketWidth ?? this.bracketWidth,
  bracketLength: bracketLength ?? this.bracketLength,
  windowShape: windowShape ?? this.windowShape,
  breathing: breathing ?? this.breathing,
  scanLine: scanLine ?? this.scanLine,
  windowPicture: windowPicture ?? this.windowPicture,
  glass: glass ?? this.glass,
  sheet: sheet ?? this.sheet,
  sheetRadius: sheetRadius ?? this.sheetRadius,
  outline: outline ?? this.outline,
  outlineWidth: outlineWidth ?? this.outlineWidth,
  textStyles: textStyles ?? this.textStyles,
  icons: icons ?? this.icons,
);