Background class final
Describes a chat background
Constructors
- Background({required int id, required bool isDefault, required bool isDark, required String name, Document? document, required BackgroundType type, dynamic extra, int? clientId})
-
Describes a chat background
const
-
Background.fromJson(Map<
String, dynamic> json) -
Parses a Background from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- document → Document?
-
Document with the background; may be null. Null only for filled and chat theme backgrounds
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Unique background identifier
final
- isDark → bool
-
True, if the background is dark and is recommended to be used with dark theme
final
- isDefault → bool
-
True, if this is one of default backgrounds
final
- name → String
-
Unique background name
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → BackgroundType
-
Type of the background
final
Methods
-
copyWith(
{int? id, bool? isDefault, bool? isDark, String? name, Document? document()?, BackgroundType? type, dynamic extra, int? clientId}) → Background -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.