Upgrading file_picker 1 to 2
Unknown1.13.3 → 2.1.7
Fetching 29 releases from GitHub…0 / 29
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
static method FilePicker.getFile({ FileType type = …, List<String> allowedExtensions, Function(FilePickerStatus) onFileLoading, bool allowCompression, }): Future<File> - removed:
static method FilePicker.getFilePath({ FileType type = …, List<String> allowedExtensions, Function(FilePickerStatus) onFileLoading, bool allowCompression, }): Future<String> - removed:
static method FilePicker.getMultiFile({ FileType type = …, List<String> allowedExtensions, Function(FilePickerStatus) onFileLoading, bool allowCompression, }): Future<List<File>> - removed:
static method FilePicker.getMultiFilePath({ FileType type = …, List<String> allowedExtensions, Function(FilePickerStatus) onFileLoading, bool allowCompression, }): Future<Map<String, String>> - changed:
class FilePicker → class FilePicker: abstract extends PlatformInterface - changed:
static method FilePicker.clearTemporaryFiles(): Future<bool> → method FilePicker.clearTemporaryFiles(): Future<bool> - changed:
static method FilePicker.getDirectoryPath(): Future<String> → method FilePicker.getDirectoryPath(): Future<String> - added:
class FilePickerResult - added:
class PlatformFile - added:
ctor FilePicker() - added:
ctor FilePickerResult(this.files) - added:
ctor PlatformFile({ this.path, this.name, this.bytes, this.readStream, this.size, }) - added:
ctor PlatformFile.fromMap(Map data, {this.readStream}) - added:
enum FilePickerStatus - added:
enum FileType - added:
field FilePickerResult.files: final List<PlatformFile> - added:
field PlatformFile.bytes: final Uint8List - added:
field PlatformFile.name: final String - added:
field PlatformFile.path: final String - added:
field PlatformFile.readStream: final Stream<List<int>> - added:
field PlatformFile.size: final int - added:
get FilePickerResult.count: int - added:
get FilePickerResult.isSinglePick: bool - added:
get FilePickerResult.names: List<String> - added:
get FilePickerResult.paths: List<String> - added:
get PlatformFile.extension: String - added:
member FilePickerStatus.done - added:
member FilePickerStatus.picking - added:
member FileType.any - added:
member FileType.audio - added:
member FileType.custom - added:
member FileType.image - added:
member FileType.media - added:
member FileType.video - added:
method FilePicker.pickFiles({ FileType type = …, List<String> allowedExtensions, Function(FilePickerStatus) onFileLoading, bool allowCompression, bool allowMultiple = …, bool withData, bool withReadStream, }): Future<FilePickerResult> - added:
static get FilePicker.platform: FilePicker - added:
static set FilePicker.platform(FilePicker instance)