SetOption class
Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization.
Returns Ok.
- Inheritance
- Available Extensions
Constructors
- SetOption({required String name, OptionValue? value, int? extra, int? clientId})
- Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization
Properties
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- name ↔ String
-
The name of the option.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- value ↔ OptionValue?
-
The new value of the option; pass null to reset option value to a default value.
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
Constants
- CONSTRUCTOR → const String
-
@type
"setOption"