File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class FormBuilderFilePicker extends FormBuilderField<List<PlatformFile>> {
48
48
final void Function (FilePickerStatus )? onFileLoading;
49
49
50
50
/// Whether to allow file compression
51
- final bool ? allowCompression;
51
+ final bool allowCompression;
52
52
53
53
/// If [withData] is set, picked files will have its byte data immediately available on memory as [Uint8List]
54
54
/// which can be useful if you are picking it for server upload or similar.
@@ -87,7 +87,7 @@ class FormBuilderFilePicker extends FormBuilderField<List<PlatformFile>> {
87
87
this .type = FileType .any,
88
88
this .allowedExtensions,
89
89
this .onFileLoading,
90
- this .allowCompression,
90
+ this .allowCompression = false ,
91
91
this .customFileViewerBuilder,
92
92
}) : super (
93
93
key: key,
You can’t perform that action at this time.
0 commit comments