copyWith method

StreamLivestreamThemeData copyWith({
  1. IconThemeData? playIconTheme,
  2. IconThemeData? pauseIconTheme,
  3. double? playPauseIconSize,
  4. Color? liveButtonColor,
  5. Color? backstageButtonColor,
  6. TextStyle? callStateButtonTextStyle,
  7. TextStyle? participantCountTextStyle,
  8. TextStyle? durationTextStyle,
  9. TextStyle? backstageTextStyle,
  10. TextStyle? backstageCounterTextStyle,
  11. TextStyle? backstageParticipantsTextStyle,
  12. TextStyle? liveEndedTextStyle,
  13. TextStyle? liveEndedRecordingsTextStyle,
  14. IconThemeData? participantIconTheme,
  15. IconThemeData? speakerEnabledIconTheme,
  16. IconThemeData? speakerDisabledIconTheme,
  17. IconThemeData? expandIconTheme,
  18. IconThemeData? contractIconTheme,
  19. EdgeInsets? hostsGridPadding,
  20. double? hostsGridMainAxisSpacing,
  21. double? hostsGridCrossAxisSpacing,
})

Creates a copy of this object with the given fields replaced with the new values.

Implementation

StreamLivestreamThemeData copyWith({
  IconThemeData? playIconTheme,
  IconThemeData? pauseIconTheme,
  double? playPauseIconSize,
  Color? liveButtonColor,
  Color? backstageButtonColor,
  TextStyle? callStateButtonTextStyle,
  TextStyle? participantCountTextStyle,
  TextStyle? durationTextStyle,
  TextStyle? backstageTextStyle,
  TextStyle? backstageCounterTextStyle,
  TextStyle? backstageParticipantsTextStyle,
  TextStyle? liveEndedTextStyle,
  TextStyle? liveEndedRecordingsTextStyle,
  IconThemeData? participantIconTheme,
  IconThemeData? speakerEnabledIconTheme,
  IconThemeData? speakerDisabledIconTheme,
  IconThemeData? expandIconTheme,
  IconThemeData? contractIconTheme,
  EdgeInsets? hostsGridPadding,
  double? hostsGridMainAxisSpacing,
  double? hostsGridCrossAxisSpacing,
}) {
  return StreamLivestreamThemeData(
    playIconTheme: playIconTheme ?? this.playIconTheme,
    pauseIconTheme: pauseIconTheme ?? this.pauseIconTheme,
    playPauseIconSize: playPauseIconSize ?? this.playPauseIconSize,
    liveButtonColor: liveButtonColor ?? this.liveButtonColor,
    backstageButtonColor: backstageButtonColor ?? this.backstageButtonColor,
    callStateButtonTextStyle:
        callStateButtonTextStyle ?? this.callStateButtonTextStyle,
    participantCountTextStyle:
        participantCountTextStyle ?? this.participantCountTextStyle,
    durationTextStyle: durationTextStyle ?? this.durationTextStyle,
    backstageTextStyle: backstageTextStyle ?? this.backstageTextStyle,
    backstageCounterTextStyle:
        backstageCounterTextStyle ?? this.backstageCounterTextStyle,
    backstageParticipantsTextStyle:
        backstageParticipantsTextStyle ?? this.backstageParticipantsTextStyle,
    liveEndedTextStyle: liveEndedTextStyle ?? this.liveEndedTextStyle,
    liveEndedRecordingsTextStyle:
        liveEndedRecordingsTextStyle ?? this.liveEndedRecordingsTextStyle,
    participantIconTheme: participantIconTheme ?? this.participantIconTheme,
    speakerEnabledIconTheme:
        speakerEnabledIconTheme ?? this.speakerEnabledIconTheme,
    speakerDisabledIconTheme:
        speakerDisabledIconTheme ?? this.speakerDisabledIconTheme,
    expandIconTheme: expandIconTheme ?? this.expandIconTheme,
    contractIconTheme: contractIconTheme ?? this.contractIconTheme,
    hostsGridPadding: hostsGridPadding ?? this.hostsGridPadding,
    hostsGridMainAxisSpacing:
        hostsGridMainAxisSpacing ?? this.hostsGridMainAxisSpacing,
    hostsGridCrossAxisSpacing:
        hostsGridCrossAxisSpacing ?? this.hostsGridCrossAxisSpacing,
  );
}