We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de87c7e + 2c924a8 commit 7f32a3bCopy full SHA for 7f32a3b
lib/src/form_builder_file_picker.dart
@@ -77,7 +77,7 @@ class FormBuilderFilePicker extends FormBuilderField<List<PlatformFile>> {
77
Key? key,
78
required String name,
79
FormFieldValidator<List<PlatformFile>>? validator,
80
- List<PlatformFile> initialValue = const [],
+ List<PlatformFile>? initialValue,
81
InputDecoration decoration = const InputDecoration(),
82
ValueChanged<List<PlatformFile>?>? onChanged,
83
ValueTransformer<List<PlatformFile>?>? valueTransformer,
@@ -190,7 +190,7 @@ class _FormBuilderFilePickerState
190
@override
191
void initState() {
192
super.initState();
193
- _files = widget.initialValue ?? [];
+ _files = initialValue ?? [];
194
}
195
196
Future<void> pickFiles(
0 commit comments