copyWith method
VideoViewerStyle
copyWith({
- SettingsMenuStyle? settingsStyle,
- VolumeBarStyle? volumeBarStyle,
- ProgressBarStyle? progressBarStyle,
- SubtitleStyle? subtitleStyle,
- ForwardAndRewindStyle? forwardAndRewindStyle,
- PlayAndPauseWidgetStyle? playAndPauseStyle,
- Widget? thumbnail,
- Widget? header,
- Widget? loading,
- Widget? buffering,
- Duration? transitions,
- TextStyle? textStyle,
- Widget skipAdBuilder()?,
- Alignment? skipAdAlignment,
- VideoViewerChatStyle? chatStyle,
Implementation
VideoViewerStyle copyWith({
SettingsMenuStyle? settingsStyle,
VolumeBarStyle? volumeBarStyle,
ProgressBarStyle? progressBarStyle,
SubtitleStyle? subtitleStyle,
ForwardAndRewindStyle? forwardAndRewindStyle,
PlayAndPauseWidgetStyle? playAndPauseStyle,
Widget? thumbnail,
Widget? header,
Widget? loading,
Widget? buffering,
Duration? transitions,
TextStyle? textStyle,
Widget Function(Duration)? skipAdBuilder,
Alignment? skipAdAlignment,
VideoViewerChatStyle? chatStyle,
}) {
return VideoViewerStyle(
settingsStyle: settingsStyle ?? this.settingsStyle,
volumeBarStyle: volumeBarStyle ?? this.volumeBarStyle,
progressBarStyle: progressBarStyle ?? this.progressBarStyle,
subtitleStyle: subtitleStyle ?? this.subtitleStyle,
forwardAndRewindStyle: forwardAndRewindStyle ?? this.forwardAndRewindStyle,
playAndPauseStyle: playAndPauseStyle ?? this.playAndPauseStyle,
thumbnail: thumbnail ?? this.thumbnail,
header: header ?? this.header,
loading: loading ?? this.loading,
buffering: buffering ?? this.buffering,
transitions: transitions ?? this.transitions,
textStyle: textStyle ?? this.textStyle,
skipAdBuilder: skipAdBuilder ?? this.skipAdBuilder,
skipAdAlignment: skipAdAlignment ?? this.skipAdAlignment,
chatStyle: chatStyle ?? this.chatStyle,
);
}