copyWith method

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

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,
  TextStyle? textStyle,
}) {
  return SfBarcodeThemeData.raw(
      brightness: brightness,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      barColor: barColor ?? this.barColor,
      textColor: textColor ?? this.textColor,
      textStyle: textStyle ?? this.textStyle);
}