Background class
Describes a chat background.
- Inheritance
- Available Extensions
Constructors
- Background({required int64 id, required bool is_default, required bool is_dark, required String name, Document? document, required BackgroundType type, int? extra, int? clientId})
- Describes a chat background
Properties
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- document ↔ Document?
-
Document with the background; may be null. Null only for filled backgrounds.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id ↔ int64
-
Unique background identifier.
; string representation of int, use
int.parse
read / write - is_dark ↔ bool
-
True, if the background is dark and is recommended to be used with dark theme.
read / write
- is_default ↔ bool
-
True, if this is one of default backgrounds.
read / write
- name ↔ String
-
Unique background name.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- type ↔ BackgroundType
-
Type of the background.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Object to Map serializer
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? _map) → Background? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"background"