ScopeAutosaveSettings class final

Contains autosave settings for an autosave settings scope

Inheritance

Constructors

ScopeAutosaveSettings({required bool autosavePhotos, required bool autosaveVideos, required int maxVideoFileSize})
Contains autosave settings for an autosave settings scope
const
ScopeAutosaveSettings.fromJson(Map<String, dynamic> json)
Parses a ScopeAutosaveSettings from TDLib JSON.
factory

Properties

autosavePhotos → bool
True, if photo autosave is enabled
final
autosaveVideos → bool
True, if video autosave is enabled
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
maxVideoFileSize → int
The maximum size of a video file to be autosaved, in bytes; 512 KB - 4000 MB
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? autosavePhotos, bool? autosaveVideos, int? maxVideoFileSize}) → ScopeAutosaveSettings
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to 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.