AttachedFile class final
- Implemented types
Constructors
- AttachedFile.fromFile(File file, String name, {bool? spoiler, String? proxyUrl, int? height, int? width, String? contentType, String? description})
-
Creates an AttachedFile from a local file.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- item ↔ MediaItem
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → ComponentType
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMediaItem(
MediaItem mediaItem) → Future< AttachedFile> - Creates an AttachedFile from a MediaItem.
-
fromNetwork(
String url, String name, {bool? spoiler, String? proxyUrl, int? height, int? width, String? contentType, String? description}) → Future< AttachedFile> - Creates an AttachedFile by fetching a file from a network URL.