copyWith method

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

Implementation

DanmakuOption copyWith({
  double? fontSize,
  double? area,
  int? duration,
  double? opacity,
  bool? hideTop,
  bool? hideBottom,
  bool? hideScroll,
  bool? showStroke,
  bool? massiveMode,
}) {
  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,
    showStroke: showStroke ?? this.showStroke,
    massiveMode: massiveMode ?? this.massiveMode,
  );
}