Luggage class
This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser.
FunFact: instead of calling it InputFile, I called Luggage, because it's a PaperPlane (?) Got it?! ^-^
Constructors
- Luggage.withBytes({required Uint8List blob})
-
factory
- Luggage.withFile({required File file})
-
factory
- Luggage.withLink({required String link})
-
factory
- Luggage.withTGFileID({required String fileId})
-
factory
Properties
Methods
-
getBytes(
) → Uint8List -
getName(
{String? type}) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited