copyWith method

VideoViewerStyle copyWith({
  1. SettingsMenuStyle? settingsStyle,
  2. VolumeBarStyle? volumeBarStyle,
  3. ProgressBarStyle? progressBarStyle,
  4. SubtitleStyle? subtitleStyle,
  5. ForwardAndRewindStyle? forwardAndRewindStyle,
  6. PlayAndPauseWidgetStyle? playAndPauseStyle,
  7. Widget? thumbnail,
  8. Widget? header,
  9. Widget? loading,
  10. Widget? buffering,
  11. Duration? transitions,
  12. TextStyle? textStyle,
  13. Widget skipAdBuilder(
    1. Duration
    )?,
  14. Alignment? skipAdAlignment,
  15. 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,
  );
}