saveBytes abstract method
Stream<SaveProgress>
saveBytes({
- required Uint8List fileBytes,
- required FileType fileType,
- required String fileName,
- SaveLocation? saveLocation,
- String? subDir,
- ConflictResolution conflictResolution = ConflictResolution.autoRename,
Saves file bytes to device storage with progress streaming.
Platforms: Android · iOS · macOS · Windows · Linux · Web
saveLocation: Where to save the file (platform-specific, optional)subDir: Optional subdirectory within the standard save locationconflictResolution: How to handle filename conflicts
Yields SaveProgress events during save operation.
Implementation
Stream<SaveProgress> saveBytes({
required Uint8List fileBytes,
required FileType fileType,
required String fileName,
SaveLocation? saveLocation,
String? subDir,
ConflictResolution conflictResolution = ConflictResolution.autoRename,
});