copyWith method
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,
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,
);