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