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?! ^-^

More info...

Constructors

Luggage.withBytes({required Uint8List blob})
factory
Luggage.withFile({required File file})
factory
factory
Luggage.withTGFileID({required String fileId})
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
no setter

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