Skip to content

Commit 756efb6

Browse files
committed
reformat code
1 parent 7498246 commit 756efb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/form_builder_file_picker.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class FormBuilderFilePicker
5858
/// Whether to allow file compression
5959
final bool allowCompression;
6060

61-
final int? compressionQuality;
61+
final int compressionQuality;
6262

6363
/// If [withData] is set, picked files will have its byte data immediately available on memory as [Uint8List]
6464
/// which can be useful if you are picking it for server upload or similar.
@@ -103,7 +103,7 @@ class FormBuilderFilePicker
103103
this.allowedExtensions,
104104
this.onFileLoading,
105105
this.allowCompression = true,
106-
this.compressionQuality,
106+
this.compressionQuality = 30,
107107
this.customFileViewerBuilder,
108108
this.customTypeViewerBuilder})
109109
: super(
@@ -183,7 +183,7 @@ class _FormBuilderFilePickerState extends FormBuilderFieldDecorationState<
183183
type: fileType,
184184
allowedExtensions: widget.allowedExtensions,
185185
allowCompression: widget.allowCompression,
186-
compressionQuality: widget.compressionQuality ?? 30,
186+
compressionQuality: widget.compressionQuality,
187187
onFileLoading: widget.onFileLoading,
188188
allowMultiple: widget.allowMultiple,
189189
withData: widget.withData,

0 commit comments

Comments
 (0)