copyWith method
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,
);
}