Compilation error when multi-select DropDown menu initial value is set to a List?

Hello,

New to flutter flow here 👋

I have a use case which is causing a compilation error when I try to run the emulator:

Error: The argument type 'List<String>?' can't be assigned to the parameter type 'Iterable<dynamic>' because 'List<String>?' is nullable and 'Iterable<dynamic>' isn't.
 - 'List' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
                                widget.template?.sourceLanguageCodes,

Here is the configuration of the drop down's initial option values

There doesn't seem to be a way in the UI to add a ?? [] to cover the null case for the list.

If anyone has thoughts on whether I'm missing something to handle this in the UI, that would be appreciated.

Right now, I'm thinking I may be able to use a custom function to get around this issue 🤔

Thank you

4
6 replies