copyWith method

SfBarcodeThemeData copyWith({
  1. Brightness? brightness,
  2. Color? backgroundColor,
  3. Color? barColor,
  4. Color? textColor,
})

Creates a copy of this barcode theme data object with the matching fields replaced with the non-null parameter values.

Implementation

SfBarcodeThemeData copyWith({
  Brightness? brightness,
  Color? backgroundColor,
  Color? barColor,
  Color? textColor,
}) {
  return SfBarcodeThemeData.raw(
    brightness: brightness ?? this.brightness,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    barColor: barColor ?? this.barColor,
    textColor: textColor ?? this.textColor,
  );
}