StreamAttachmentHandler class
Stub implementation of StreamAttachmentHandlerBase
.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteAttachmentFile(
{required AttachmentFile attachmentFile}) → Future< void> -
Deletes the
attachmentFile
from the temporary directory.inherited -
downloadAttachment(
Attachment attachment, {ProgressCallback? onReceiveProgress, Map< String, dynamic> ? queryParameters, CancelToken? cancelToken, Options? options}) → Future<String?> -
Downloads the
attachment
to the device and returns the path to the file.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pickAudio(
) → Future< Attachment?> -
Pick an audio from the device.
inherited
-
pickFile(
{String? dialogTitle, String? initialDirectory, FileType type = FileType.any, List< String> ? allowedExtensions, dynamic onFileLoading(FilePickerStatus)?, bool allowCompression = true, bool withData = true, bool withReadStream = false, bool lockParentWindow = true}) → Future<Attachment?> -
Pick a file from the device.
inherited
-
pickImage(
{required ImageSource source, double? maxWidth, double? maxHeight, int? imageQuality, CameraDevice preferredCameraDevice = CameraDevice.rear}) → Future< Attachment?> -
Pick an image from the device.
inherited
-
pickVideo(
{required ImageSource source, CameraDevice preferredCameraDevice = CameraDevice.rear, Duration? maxDuration}) → Future< Attachment?> -
Pick a video from the device.
inherited
-
saveAttachmentFile(
{required AttachmentFile attachmentFile}) → Future< String> -
Saves the
attachmentFile
to the temporary directory.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → StreamAttachmentHandler
-
Returns an instance of StreamAttachmentHandler.
no setter