multiselect_formfield
multiselect_formfield copied to clipboard
After Migrating to null safety have this issue type '() => Null' is not a subtype of type '(() => Map<String, dynamic>)?' of 'orElse'
Returning null around here var existingItem = dataSource!.singleWhere(((itm) => itm[valueField] == item), orElse: () => null);
at line 72 is causing this. I think should replace null by [] but I did not test it.
I could fix this by replacing () => null
by null
I will request a pull for this. Thanks
instead of using List<Map<String,dynamic> as data source just use List