Background class

Inheritance

Constructors

Background({int id, bool isDefault, bool isDark, String name, Document document, BackgroundType type})
Describes a chat background
Background.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

document Document
document Document with the background; may be null. Null only for filled backgrounds
read / write
extra ↔ dynamic
callback sign
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
id Unique background identifier
read / write
isDark bool
isDark True, if the background is dark and is recommended to be used with dark theme
read / write
isDefault bool
isDefault True, if this is one of default backgrounds
read / write
name String
name Unique background name
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type BackgroundType
type Type of the background
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
'background'