copyWith method

  1. @override
StreamVideoTheme copyWith({
  1. StreamTextTheme? textTheme,
  2. StreamColorTheme? colorTheme,
  3. StreamCallControlsThemeData? callControlsTheme,
  4. StreamUserAvatarThemeData? userAvatarTheme,
  5. StreamLobbyViewThemeData? lobbyViewTheme,
  6. StreamCallParticipantThemeData? callParticipantTheme,
  7. StreamLocalVideoThemeData? localVideoTheme,
  8. StreamIncomingOutgoingCallThemeData? incomingCallTheme,
  9. StreamCallContentThemeData? callContentTheme,
  10. StreamIncomingOutgoingCallThemeData? outgoingCallTheme,
  11. StreamLivestreamThemeData? livestreamTheme,
})
override

Creates a copy of StreamVideoTheme with specified attributes overridden.

Implementation

@override
StreamVideoTheme copyWith({
  StreamTextTheme? textTheme,
  StreamColorTheme? colorTheme,
  StreamCallControlsThemeData? callControlsTheme,
  StreamUserAvatarThemeData? userAvatarTheme,
  StreamLobbyViewThemeData? lobbyViewTheme,
  StreamCallParticipantThemeData? callParticipantTheme,
  StreamLocalVideoThemeData? localVideoTheme,
  StreamIncomingOutgoingCallThemeData? incomingCallTheme,
  StreamCallContentThemeData? callContentTheme,
  StreamIncomingOutgoingCallThemeData? outgoingCallTheme,
  StreamLivestreamThemeData? livestreamTheme,
}) => StreamVideoTheme.raw(
  textTheme: this.textTheme.merge(textTheme),
  colorTheme: this.colorTheme.merge(colorTheme),
  callControlsTheme: this.callControlsTheme.merge(callControlsTheme),
  userAvatarTheme: this.userAvatarTheme.merge(userAvatarTheme),
  lobbyViewTheme: this.lobbyViewTheme.merge(lobbyViewTheme),
  callParticipantTheme: this.callParticipantTheme.merge(callParticipantTheme),
  localVideoTheme: this.localVideoTheme.merge(localVideoTheme),
  incomingCallTheme: this.incomingCallTheme.merge(incomingCallTheme),
  callContentTheme: this.callContentTheme.merge(callContentTheme),
  outgoingCallTheme: this.outgoingCallTheme.merge(outgoingCallTheme),
  livestreamTheme: this.livestreamTheme.merge(livestreamTheme),
);