SetDefaultBackground class final
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.
- Inheritance
-
- Object
- TdFunction
- SetDefaultBackground
Constructors
- SetDefaultBackground({InputBackground? background, BackgroundType? type, required bool forDarkTheme})
-
SetDefaultBackground (setDefaultBackground) - TDLib function
const
Properties
- background → InputBackground?
-
The input background to use; pass null to create a new filled background
final
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- forDarkTheme → bool
-
Pass true if the background is set for a dark theme
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → BackgroundType?
-
Background type; pass null to use the default type of the remote background; backgroundTypeChatTheme isn't supported
final
Methods
-
copyWith(
{InputBackground? background, BackgroundType? type, bool? forDarkTheme}) → SetDefaultBackground - Copy model with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type