copyWith method

KLineInfoStyle copyWith({
  1. Color? backgroundColor,
  2. TextStyle? textStyle,
})

Returns a copy with selected values replaced.

Implementation

KLineInfoStyle copyWith({
  Color? backgroundColor,
  TextStyle? textStyle,
}) {
  return KLineInfoStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    textStyle: textStyle ?? this.textStyle,
  );
}