Skip to content

Commit

Permalink
reactive_file_picker 3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilich6107 committed Nov 5, 2024
1 parent 8e52f56 commit 1c86e72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/reactive_file_picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [3.0.3]

* MultiFile.fromFiles allow null

## [3.0.2]

* MultiFile.fromFile factory method
Expand Down
4 changes: 2 additions & 2 deletions packages/reactive_file_picker/lib/multi_file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class MultiFile<T> with _$MultiFile<T> {
@Default([]) List<PlatformFile> platformFiles,
}) = _MultiFile<T>;

factory MultiFile.fromFiles(List<T?> files) => MultiFile(
files: files.whereType<T>().toList(),
factory MultiFile.fromFiles(List<T?>? files) => MultiFile(
files: (files ?? []).whereType<T>().toList(),
);
factory MultiFile.fromFile(T? file) => MultiFile(
files: [file].whereType<T>().toList(),
Expand Down
2 changes: 1 addition & 1 deletion packages/reactive_file_picker/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: reactive_file_picker
description: Wrapper around file_picker to use with reactive_forms.
version: 3.0.2
version: 3.0.3
repository: https://github.com/artflutter/reactive_forms_widgets/tree/master/packages/reactive_file_picker
issue_tracker: https://github.com/artflutter/reactive_forms_widgets/issues

Expand Down

0 comments on commit 1c86e72

Please sign in to comment.