Skip to content

Commit 4b264dc

Browse files
committed
Assert that initial value for ChipsInput (if present) is a list
1 parent 32b6179 commit 4b264dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/form_builder_input.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class FormBuilderInput {
258258
this.value,
259259
this.require = false,
260260
this.validator,
261-
}) {
261+
}) : assert(value == null || value is List) {
262262
type = FormBuilderInput.TYPE_CHIPS_INPUT;
263263
}
264264

0 commit comments

Comments
 (0)