copyWith method

PipConfiguration copyWith({
  1. Color? backgroundColor,
  2. Color? textColor,
  3. double? textSize,
  4. TextAlign? textAlign,
  5. (int, int)? ratio,
})

Implementation

PipConfiguration copyWith({
  Color? backgroundColor,
  Color? textColor,
  double? textSize,
  TextAlign? textAlign,
  (int, int)? ratio,
}) {
  return PipConfiguration(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    textColor: textColor ?? this.textColor,
    textSize: textSize ?? this.textSize,
    textAlign: textAlign ?? this.textAlign,
    ratio: ratio ?? this.ratio,
  );
}