copyWith method

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

Implementation

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