copyWith method
PlayerControlsTheme
copyWith({
- Color? primaryColor,
- Color? backgroundColor,
- Color? iconColor,
- Color? textColor,
- Color? progressBarColor,
- Color? progressBarBackgroundColor,
- double? mainIconSize,
- double? secondaryIconSize,
- double? progressBarHeight,
- double? borderRadius,
- TextStyle? timeTextStyle,
- TextStyle? buttonTextStyle,
- bool? autoHideControls,
- Duration? autoHideDuration,
- Duration? animationDuration,
- double? controlsBackgroundOpacity,
Copy with modifications
Implementation
PlayerControlsTheme copyWith({
Color? primaryColor,
Color? backgroundColor,
Color? iconColor,
Color? textColor,
Color? progressBarColor,
Color? progressBarBackgroundColor,
double? mainIconSize,
double? secondaryIconSize,
double? progressBarHeight,
double? borderRadius,
TextStyle? timeTextStyle,
TextStyle? buttonTextStyle,
bool? autoHideControls,
Duration? autoHideDuration,
Duration? animationDuration,
double? controlsBackgroundOpacity,
}) {
return PlayerControlsTheme(
primaryColor: primaryColor ?? this.primaryColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
iconColor: iconColor ?? this.iconColor,
textColor: textColor ?? this.textColor,
progressBarColor: progressBarColor ?? this.progressBarColor,
progressBarBackgroundColor: progressBarBackgroundColor ?? this.progressBarBackgroundColor,
mainIconSize: mainIconSize ?? this.mainIconSize,
secondaryIconSize: secondaryIconSize ?? this.secondaryIconSize,
progressBarHeight: progressBarHeight ?? this.progressBarHeight,
borderRadius: borderRadius ?? this.borderRadius,
timeTextStyle: timeTextStyle ?? this.timeTextStyle,
buttonTextStyle: buttonTextStyle ?? this.buttonTextStyle,
autoHideControls: autoHideControls ?? this.autoHideControls,
autoHideDuration: autoHideDuration ?? this.autoHideDuration,
animationDuration: animationDuration ?? this.animationDuration,
controlsBackgroundOpacity: controlsBackgroundOpacity ?? this.controlsBackgroundOpacity,
);
}