LocalFile class
Represents a local file
Constructors
Properties
- can_be_deleted ↔ Bool?
-
True, if the file can be deleted
getter/setter pair
- can_be_downloaded ↔ Bool?
-
True, if it is possible to download or generate the file
getter/setter pair
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- download_offset ↔ int53?
-
Download will be started from this offset. downloaded_prefix_size is calculated from this offset
getter/setter pair
- downloaded_prefix_size ↔ int53?
-
If is_downloading_completed is false, then only some prefix of the file starting from download_offset is ready to be read. downloaded_prefix_size is the size of that prefix in bytes
getter/setter pair
- downloaded_size ↔ int53?
-
Total downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage
getter/setter pair
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- is_downloading_active ↔ Bool?
-
True, if the file is currently being downloaded (or a local copy is being generated by some other means)
getter/setter pair
- is_downloading_completed ↔ Bool?
-
True, if the local copy is fully available
getter/setter pair
- path ↔ string?
-
Local path to the locally available file part; may be empty
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited