Problem when changing a value in an array to null – Flutter
I have a list of nullable boolean delared like that : late List<bool?> isClosed; ... void initState() { super.initState(); isClosed = widget.gateway.nodes.map((e) { return e.devices.firstWhere((element) { return element.type == 'lock'; }).state == 'close'; }).toList(); } And later in my code…