TFile class
Represents a file selected by TFilePicker.
TFile encapsulates file data including:
- File name and extension
- Raw bytes content
- Platform-specific File object (if available)
Constructors
Properties
- bytes → Uint8List
-
The raw bytes of the file.
final
- extension → String
-
The file extension (e.g., "pdf").
final
- file → File?
-
The platform-specific file object (optional).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- name → String
-
The name of the file (e.g., "document.pdf").
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override