copyWith method

DanmakuOption copyWith({
  1. double? fontSize,
  2. double? area,
  3. double? duration,
  4. double? opacity,
  5. bool? hideTop,
  6. bool? hideBottom,
  7. bool? hideScroll,
  8. bool? borderText,
})

Implementation

DanmakuOption copyWith({
  double? fontSize,
  double? area,
  double? duration,
  double? opacity,
  bool? hideTop,
  bool? hideBottom,
  bool? hideScroll,
  bool? borderText,
}) {
  return DanmakuOption(
    area: area ?? this.area,
    fontSize: fontSize ?? this.fontSize,
    duration: duration ?? this.duration,
    opacity: opacity ?? this.opacity,
    hideTop: hideTop ?? this.hideTop,
    hideBottom: hideBottom ?? this.hideBottom,
    hideScroll: hideScroll ?? this.hideScroll,
    borderText: borderText ?? this.borderText,
  );
}