SecretChat class

Inheritance

Constructors

SecretChat({int id, int userId, SecretChatState state, bool isOutbound, int ttl, String keyHash, int layer})
Represents a secret chat
SecretChat.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

extra ↔ dynamic
callback sign
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
id Secret chat identifier
read / write
isOutbound bool
isOutbound True, if the chat was created by the current user; otherwise false
read / write
keyHash String
keyHash Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9.. The pixels must be used to make a 12x12 square image filled from left to right, top to bottom. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers
read / write
layer int
layer Secret chat layer; determines features supported by the chat partner's application. Video notes are supported if the layer
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state SecretChatState
state State of the secret chat
read / write
ttl int
ttl Current message Time To Live setting (self-destruct timer) for the chat, in seconds
read / write
userId int
userId Identifier of the chat partner
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
'secretChat'