SetDefaultBackground constructor

const SetDefaultBackground({
  1. InputBackground? background,
  2. BackgroundType? type,
  3. required bool forDarkTheme,
})

SetDefaultBackground (setDefaultBackground) - TDLib function

Sets default background for chats; adds the background to the list of installed backgrounds.

  • background: The input background to use; pass null to create a new filled background (optional).
  • type: Background type; pass null to use the default type of the remote background; backgroundTypeChatTheme isn't supported (optional).
  • forDarkTheme: Pass true if the background is set for a dark theme.

Background is returned on completion.

Implementation

const SetDefaultBackground({
  this.background,
  this.type,
  required this.forDarkTheme,
});