LocalFile class
Represents a local file.
- Inheritance
- Available Extensions
Constructors
- LocalFile({required String path, required bool can_be_downloaded, required bool can_be_deleted, required bool is_downloading_active, required bool is_downloading_completed, required int download_offset, required int downloaded_prefix_size, required int downloaded_size, int? extra, int? clientId})
- Represents a local file
Properties
- can_be_deleted ↔ bool
-
True, if the file can be deleted.
read / write
- can_be_downloaded ↔ bool
-
True, if it is possible to download or generate the file.
read / write
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- download_offset ↔ int
-
Download will be started from this offset. downloaded_prefix_size is calculated from this offset.
read / write
- downloaded_prefix_size ↔ int
-
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.
read / write
- downloaded_size ↔ int
-
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.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- is_downloading_active ↔ bool
-
True, if the file is currently being downloaded (or a local copy is being generated by some other means).
read / write
- is_downloading_completed ↔ bool
-
True, if the local copy is fully available.
read / write
- path ↔ String
-
Local path to the locally available file part; may be empty.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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
"localFile"